2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-02 00:50:48 +00:00

Fix sync.WaitGroup usage in restorer.fileRestorer

This commit is contained in:
greatroar 2020-02-27 00:07:49 +01:00
parent 616f9499ae
commit de5516a90e

View File

@ -152,8 +152,8 @@ func (r *fileRestorer) restoreFiles(ctx context.Context) error {
} }
} }
for i := 0; i < workerCount; i++ { for i := 0; i < workerCount; i++ {
go worker()
wg.Add(1) wg.Add(1)
go worker()
} }
// the main restore loop // the main restore loop