Fix timeout issues

This commit is contained in:
2017-07-13 09:20:12 +02:00
parent d6155bf3a1
commit 86b2eea13a
2 changed files with 5 additions and 2 deletions

View File

@ -11,9 +11,10 @@ import (
func main() {
color.Yellow("Refreshing anime characters...")
allAnime, _ := arn.AllAnime()
rateLimiter := time.NewTicker(500 * time.Millisecond)
for anime := range arn.MustStreamAnime() {
for _, anime := range allAnime {
<-rateLimiter.C
chars, err := anime.RefreshAnimeCharacters()