Unverified Commit 4a4e60e0 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #554 from libp2p/fix/553

fix incorrect error handling during provider record lookups
parents 1ba03105 b2b0244e
......@@ -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