Removed time.Sleep statements in jobs

This commit is contained in:
2018-07-03 12:27:34 +09:00
parent bd6291290b
commit 21823890e0
10 changed files with 49 additions and 22 deletions

View File

@ -4,7 +4,6 @@ import (
"fmt"
"net/http"
"sort"
"time"
_ "image/gif"
_ "image/jpeg"
@ -33,8 +32,6 @@ func main() {
fmt.Printf("[%d / %d] %s %s\n", index+1, len(characters), character.ID, color.CyanString(character.String()))
download(character.ID)
}
time.Sleep(time.Second)
}
func download(characterID string) {

View File

@ -2,7 +2,6 @@ package main
import (
"fmt"
"time"
"github.com/animenotifier/arn"
"github.com/fatih/color"
@ -32,8 +31,5 @@ func main() {
// Save the file information
track.Save()
// Delay a little
time.Sleep(delayBetweenRequests)
}
}