From 1452ae0c9e56d2f5ca0dd22cd9b829c89dafc08e Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 20 Dec 2019 15:53:59 -0500 Subject: [PATCH] change to ms --- src/go/storage.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/go/storage.go b/src/go/storage.go index 954e97d..264c40d 100644 --- a/src/go/storage.go +++ b/src/go/storage.go @@ -69,9 +69,9 @@ func main() { HandleError(err, 1) for { + fmt.Printf("Calling handler func [GO]\n") handler() - fmt.Printf("Calling handler func [GO]\n") - time.Sleep(1000000 * time.Second) + time.Sleep(1000000 * time.Millisecond) } } @@ -82,7 +82,7 @@ func handler() { for cur.Next(context.TODO()) { 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()) - time.Sleep(600000 * time.Second) + time.Sleep(600000 * time.Millisecond) } }