mirror of
https://github.com/restic/restic.git
synced 2025-08-12 11:47:43 +00:00
Fix sync.WaitGroup usage in restorer.fileRestorer
This commit is contained in:
@@ -152,8 +152,8 @@ func (r *fileRestorer) restoreFiles(ctx context.Context) error {
|
||||
}
|
||||
}
|
||||
for i := 0; i < workerCount; i++ {
|
||||
go worker()
|
||||
wg.Add(1)
|
||||
go worker()
|
||||
}
|
||||
|
||||
// the main restore loop
|
||||
|
Reference in New Issue
Block a user