chore: use wg.Go instead of add

This commit is contained in:
Florian Schade
2026-04-22 14:07:06 +02:00
committed by Ralf Haferkamp
parent a8fff7e4c3
commit 86d79430a3
7 changed files with 18 additions and 36 deletions

View File

@@ -109,9 +109,7 @@ func (pps *PostprocessingService) Run() error {
wg := sync.WaitGroup{}
for range pps.c.Workers {
wg.Add(1)
go func() {
defer wg.Done()
wg.Go(func() {
EventLoop:
for {
@@ -149,7 +147,7 @@ func (pps *PostprocessingService) Run() error {
}
}
}
}()
})
}
wg.Wait()