Fix retrieval datastore-key-not-found error

This commit is contained in:
Łukasz Magiera 2020-07-10 18:33:26 +02:00
parent 56dd3f40e0
commit ede57c0b12

View File

@ -8,7 +8,6 @@ import (
blocks "github.com/ipfs/go-block-format" blocks "github.com/ipfs/go-block-format"
"github.com/ipfs/go-cid" "github.com/ipfs/go-cid"
"github.com/ipfs/go-datastore"
blockstore "github.com/ipfs/go-ipfs-blockstore" blockstore "github.com/ipfs/go-ipfs-blockstore"
) )
@ -63,7 +62,7 @@ func (m *multiReadBs) Get(cid cid.Cid) (blocks.Block, error) {
} }
if merr == nil { if merr == nil {
return nil, datastore.ErrNotFound return nil, blockstore.ErrNotFound
} }
return nil, merr return nil, merr