sleep for 500ms instead of 1s

This commit is contained in:
Gabe Farrell 2025-03-04 11:24:54 -05:00
parent b3ffa247ee
commit cca2f9d549

View file

@ -88,7 +88,7 @@ func getAnimeSearch(malToTvdb map[int]int, r *http.Request) (string, error) {
break
}
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
}
}