2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 12:55:18 +00:00

Merge pull request #2603 from greatroar/restorer-waitgroup

Fix unsafe sync.WaitGroup usage in restorer.fileRestorer
This commit is contained in:
rawtaz 2020-02-27 00:30:59 +01:00 committed by GitHub
commit 65d3fb6b33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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