repository: Simplify worker group code

This commit is contained in:
Michael Eischer
2020-09-05 10:07:16 +02:00
parent 84ea2389ae
commit 4784540f04
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ func (c *Checker) LoadIndex(ctx context.Context) (hints []error, errs []error) {
// run workers on ch
wg.Go(func() error {
return repository.RunWorkers(ctx, defaultParallelism, worker, final)
return repository.RunWorkers(defaultParallelism, worker, final)
})
// receive decoded indexes