change to ms

merge-requests/1/merge
Matthew 2019-12-20 15:53:59 -05:00
parent f4ab9e9cb8
commit 1452ae0c9e
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 3 additions and 3 deletions

View File

@ -69,9 +69,9 @@ func main() {
HandleError(err, 1) HandleError(err, 1)
for { for {
handler()
fmt.Printf("Calling handler func [GO]\n") fmt.Printf("Calling handler func [GO]\n")
time.Sleep(1000000 * time.Second) handler()
time.Sleep(1000000 * time.Millisecond)
} }
} }
@ -82,7 +82,7 @@ func handler() {
for cur.Next(context.TODO()) { for cur.Next(context.TODO()) {
go checkAccountSizeAndUpdate(cur.Current.Lookup("username").String(), cur.Current.Lookup("id").String()) go checkAccountSizeAndUpdate(cur.Current.Lookup("username").String(), cur.Current.Lookup("id").String())
fmt.Printf("Checking account information for %s\n", cur.Current.Lookup("username").String()) fmt.Printf("Checking account information for %s\n", cur.Current.Lookup("username").String())
time.Sleep(600000 * time.Second) time.Sleep(600000 * time.Millisecond)
} }
} }