next const

This commit is contained in:
6543 2021-05-19 23:53:29 +02:00
parent 227a1dae55
commit 19019aa665

View File

@ -30,7 +30,10 @@ type pullCache struct {
webURL string webURL string
} }


const perPage = 10 const (
perPage = 10
waitSecForMerge = 3
)


func loadCache() (cache *Cache) { func loadCache() (cache *Cache) {
// default values // default values
@ -142,7 +145,7 @@ func main() {
} }


fmt.Printf("\n\nwait 3sec for gitlab before merge created pulls\n") 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) mergePulls(client, pullsToMergeCache)
} }