diff --git a/lib/backupds/read.go b/lib/backupds/read.go index 303866273..7c8e33e74 100644 --- a/lib/backupds/read.go +++ b/lib/backupds/read.go @@ -114,8 +114,6 @@ func ReadBackup(r io.Reader, cb func(key datastore.Key, value []byte) error) err return err } } - - return nil } func RestoreInto(r io.Reader, dest datastore.Batching) error { diff --git a/node/modules/storage.go b/node/modules/storage.go index 9f9b108c2..cb30eb8c2 100644 --- a/node/modules/storage.go +++ b/node/modules/storage.go @@ -2,10 +2,10 @@ package modules import ( "context" - "golang.org/x/xerrors" "path/filepath" "go.uber.org/fx" + "golang.org/x/xerrors" "github.com/filecoin-project/lotus/chain/types" "github.com/filecoin-project/lotus/lib/backupds"