Fix closing

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-10-29 01:05:31 +01:00
parent a2c66dd102
commit ae905bd056
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -350,6 +350,9 @@ var datastoreRewriteCmd = &cli.Command{
} }
err = <-errCh err = <-errCh
return err if err != nil {
return err
}
return multierr.Append(from.Close(), to.Close())
}, },
} }