Commit ed35a2d6 authored by Steven Allen's avatar Steven Allen

return ErrNotFound when offline routing is requested and we have no local value

err is nil in this case
parent 6c4aa35c
......@@ -217,7 +217,7 @@ func (dht *IpfsDHT) GetValues(ctx context.Context, key string, nvals int) (_ []R
return vals, nil
}
} else if nvals == 0 {
return nil, err
return nil, routing.ErrNotFound
}
// get closest peers in the routing table
......
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