Commit cc8384d6 authored by Jeromy's avatar Jeromy

track broadcasted wantlist entries

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent f274b02d
......@@ -155,6 +155,9 @@ func GetLinksDirect(serv node.NodeGetter) GetLinks {
return func(ctx context.Context, c *cid.Cid) ([]*node.Link, error) {
node, err := serv.Get(ctx, c)
if err != nil {
if err == bserv.ErrNotFound {
err = ErrNotFound
}
return nil, err
}
return node.Links(), nil
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment