fix doc workers

This commit is contained in:
rmanach 2024-09-24 11:57:40 +02:00
parent 0cd4f264a3
commit b6df47ed0c

View File

@ -374,7 +374,7 @@ func (c *SchedulerCycle) run() {
} }
// workers launches `MaxWorkers` number of worker to execute job. // workers launches `MaxWorkers` number of worker to execute job.
// If job returns `ErrJobNotCompletedYet`, it re-schedules in the same slot. // If job returns `ErrJobNotCompletedYet`, it re-schedules in the current slot.
func (c *SchedulerCycle) workers() { func (c *SchedulerCycle) workers() {
for i := 0; i < MaxWorkers; i++ { for i := 0; i < MaxWorkers; i++ {
c.wg.Add(1) c.wg.Add(1)