Browse Source

update retry

master
bake 1 year ago
parent
commit
95d8e73507
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      middleware/mangasource.go

+ 1
- 1
middleware/mangasource.go View File

@@ -22,7 +22,7 @@ const MangaSourceKey = mangaSourceKey("ms")
func MangaSource(path string, age time.Duration) bison.MiddlewareHandlerFunc {
client := httpcache.New(
diskcache.New(path, age),
httpcache.WithTransport(retry.New(3, 100*time.Millisecond, nil)),
httpcache.WithTransport(retry.New(3, 100*time.Millisecond)),
httpcache.WithVerifier(httpcache.StatusInTwoHundreds),
).Client()
mr := mangasource.NewMangaRock(mangarock.New(mangarock.WithHTTPClient(client)))


Loading…
Cancel
Save