Commit b2b0244e authored by Adin Schmahmann's avatar Adin Schmahmann

fix: incorrect error handling of lookups when searching for provider records

parent 1ba03105
......@@ -606,7 +606,7 @@ func (dht *IpfsDHT) findProvidersAsyncRoutine(ctx context.Context, key multihash
},
)
if err != nil && ctx.Err() == nil {
if err == nil && ctx.Err() == nil {
dht.refreshRTIfNoShortcut(kb.ConvertKey(string(key)), lookupRes)
}
}
......
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