move log statement

Signed-off-by: Steve Kriss <krisss@vmware.com>
This commit is contained in:
Steve Kriss
2020-01-21 12:36:46 -07:00
parent 65e970f59d
commit ae316193ea
+2 -2
View File
@@ -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)