1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 11:31:54 +08:00

Bubble ErrNotFound improvements

This commit is contained in:
Hector Sanjuan
2022-03-02 16:25:37 +01:00
parent d5ad847e05
commit 7bb3bfbc33
8 changed files with 34 additions and 28 deletions

View File

@ -297,7 +297,7 @@ func walkBlock(ctx context.Context, dagserv ipld.DAGService, nd ipld.Node) (bool
for _, link := range nd.Links() {
child, err := dagserv.Get(ctx, link.Cid)
if err == ipld.ErrNotFound {
if ipld.IsNotFound(err) {
local = false
continue
}