From 19019aa6653fb5009007b343533eb2361a431dd9 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 19 May 2021 23:53:29 +0200 Subject: [PATCH] next const --- main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 7756706..a8484a4 100644 --- a/main.go +++ b/main.go @@ -30,7 +30,10 @@ type pullCache struct { webURL string } -const perPage = 10 +const ( + perPage = 10 + waitSecForMerge = 3 +) func loadCache() (cache *Cache) { // default values @@ -142,7 +145,7 @@ func main() { } fmt.Printf("\n\nwait 3sec for gitlab before merge created pulls\n") - time.Sleep(3 * time.Second) + time.Sleep(waitSecForMerge * time.Second) mergePulls(client, pullsToMergeCache) }