Removed time.Sleep statements in jobs
This commit is contained in:
@ -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) {
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user