From de5516a90e1b8132042e4f90f19ae373a4dc1a64 Mon Sep 17 00:00:00 2001 From: greatroar <@> Date: Thu, 27 Feb 2020 00:07:49 +0100 Subject: [PATCH] Fix sync.WaitGroup usage in restorer.fileRestorer --- internal/restorer/filerestorer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/restorer/filerestorer.go b/internal/restorer/filerestorer.go index f4826e586..f8c9881d0 100644 --- a/internal/restorer/filerestorer.go +++ b/internal/restorer/filerestorer.go @@ -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