Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Ettore Di Giacinto
2025-04-22 12:09:24 +02:00
committed by GitHub
parent 7fcd5b86b9
commit 0698e16768

View File

@@ -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 {}