From 16c6314a9361cadb7d9b104112c81338d052b0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Thu, 1 Oct 2020 19:20:58 +0200 Subject: [PATCH] Fix maximum number of concurrent builds. --- gitsrht-update-hook/submitter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitsrht-update-hook/submitter.go b/gitsrht-update-hook/submitter.go index 5c96857..0b7d37f 100644 --- a/gitsrht-update-hook/submitter.go +++ b/gitsrht-update-hook/submitter.go @@ -298,7 +298,7 @@ func SubmitBuild(submitter BuildSubmitter) ([]BuildSubmission, error) { var results []BuildSubmission for name, contents := range manifests { - if len(results) > 4 { + if len(results) >= 4 { log.Println("Notice: refusing to submit >4 builds") break } -- 2.38.4