repository: Simplify worker group code

This commit is contained in:
Michael Eischer
2020-03-08 20:48:51 +01:00
parent 84ea2389ae
commit 4784540f04
3 changed files with 4 additions and 6 deletions

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