From 0698e16768b7d428e7b0600fde2e6ab32b58fc2b Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 22 Apr 2025 12:09:24 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- core/agent/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/agent/agent.go b/core/agent/agent.go index 9061f8f..2caa50d 100644 --- a/core/agent/agent.go +++ b/core/agent/agent.go @@ -1010,7 +1010,7 @@ func (a *Agent) Run() error { if a.options.parallelJobs > 1 { // we fire the periodicalRunner only once. go a.periodicalRunRunner(timer) - for range a.options.parallelJobs { + for i := 0; i < a.options.parallelJobs; i++ { go a.run(timer) } select {}