sleep for 500ms instead of 1s

pull/5/head
Gabe Farrell 9 months ago
parent b3ffa247ee
commit cca2f9d549

@ -88,7 +88,7 @@ func getAnimeSearch(malToTvdb map[int]int, r *http.Request) (string, error) {
break break
} }
if hasNextPage { if hasNextPage {
time.Sleep(1 * time.Second) // sleep between requests for new page to try and avoid rate limits time.Sleep(500 * time.Millisecond) // sleep between requests for new page to try and avoid rate limits
} }
} }

Loading…
Cancel
Save