Fixed jobs and patches not building

This commit is contained in:
Eduard Urbach 2017-11-11 12:30:25 +01:00
parent 3b294cd768
commit 8d013c5fb8
3 changed files with 3 additions and 5 deletions

View File

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

View File

@ -12,7 +12,7 @@ var userName = "Akyoto"
var allAnime []*arn.Anime
func init() {
allAnime, _ = arn.AllAnime()
allAnime = arn.AllAnime()
}
func main() {

View File

@ -12,8 +12,7 @@ func main() {
arn.PanicOnError(anilist.Authorize())
color.Green(anilist.AccessToken)
allAnime, err := arn.AllAnime()
arn.PanicOnError(err)
allAnime := arn.AllAnime()
count := 0