mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-26 12:57:44 +08:00
Return ErrNotFound when zero values are returned from DHT namesys resolve
License: MIT Signed-off-by: Dirk McCormick <dirkmdev@gmail.com>
This commit is contained in:
parent
5202f76d1f
commit
32ef57c476
@ -202,6 +202,10 @@ func (r *routingResolver) getValue(ctx context.Context, ipnsKey string, options
|
||||
}
|
||||
}
|
||||
|
||||
if len(recs) == 0 {
|
||||
return nil, routing.ErrNotFound
|
||||
}
|
||||
|
||||
i, err := IpnsSelectorFunc(ipnsKey, recs)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Loading…
Reference in New Issue
Block a user