repository: Simplify worker group code

This commit is contained in:
Michael Eischer committed 2020-09-05 10:07:16 +02:00
1 parent 84ea2389ae
commit 4784540f04
3 files changed
+4 -6

No files matched your search

+1 -1
View File
@@ -479,7 +479,7 @@ func (r *Repository) LoadIndex(ctx context.Context) error {
// run workers on ch
wg.Go(func() error {
return RunWorkers(ctx, loadIndexParallelism, worker, final)
return RunWorkers(loadIndexParallelism, worker, final)
})
// receive decoded indexes