From ae316193ea0669c49015c2870718e8f28fd3dfab Mon Sep 17 00:00:00 2001 From: Steve Kriss Date: Tue, 21 Jan 2020 12:36:46 -0700 Subject: [PATCH] move log statement Signed-off-by: Steve Kriss --- pkg/restore/restore.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/restore/restore.go b/pkg/restore/restore.go index 05ea63eb1..1ec6c3ec8 100644 --- a/pkg/restore/restore.go +++ b/pkg/restore/restore.go @@ -456,12 +456,12 @@ func (ctx *context) execute() (Result, Result) { } } - ctx.log.Info("Waiting for all restic restores to complete") - // wait for all of the restic restore goroutines to be done, which is // only possible once all of their errors have been received by the loop // below, then close the resticErrs channel so the loop terminates. go func() { + ctx.log.Info("Waiting for all restic restores to complete") + // TODO timeout? ctx.resticWaitGroup.Wait() close(ctx.resticErrs)