Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
7fcd5b86b9
commit
0698e16768
@@ -1010,7 +1010,7 @@ func (a *Agent) Run() error {
|
|||||||
if a.options.parallelJobs > 1 {
|
if a.options.parallelJobs > 1 {
|
||||||
// we fire the periodicalRunner only once.
|
// we fire the periodicalRunner only once.
|
||||||
go a.periodicalRunRunner(timer)
|
go a.periodicalRunRunner(timer)
|
||||||
for range a.options.parallelJobs {
|
for i := 0; i < a.options.parallelJobs; i++ {
|
||||||
go a.run(timer)
|
go a.run(timer)
|
||||||
}
|
}
|
||||||
select {}
|
select {}
|
||||||
|
|||||||
Reference in New Issue
Block a user