mirror of
https://github.com/restic/restic.git
synced 2025-08-12 17:07:40 +00:00
repository: Simplify worker group code
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user