mirror of
https://github.com/octoleo/restic.git
synced 2024-11-22 12:55:18 +00:00
Fix sync.WaitGroup usage in restorer.fileRestorer
This commit is contained in:
parent
616f9499ae
commit
de5516a90e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user