diff --git a/cmd/lotus-shed/datastore.go b/cmd/lotus-shed/datastore.go index 854845346..9730d857f 100644 --- a/cmd/lotus-shed/datastore.go +++ b/cmd/lotus-shed/datastore.go @@ -330,8 +330,8 @@ var datastoreRewriteCmd = &cli.Command{ go func() { bw := bufio.NewWriterSize(pw, 64<<20) _, err := from.DB.Backup(bw, 0) - bw.Flush() - pw.CloseWithError(err) + _ = bw.Flush() + _ = pw.CloseWithError(err) errCh <- err }() go func() {