Skip to content

Commit

Permalink
Merge pull request #554 from libp2p/fix/553
Browse files Browse the repository at this point in the history
fix incorrect error handling during provider record lookups
  • Loading branch information
Stebalien authored Apr 6, 2020
2 parents 1ba0310 + b2b0244 commit 4a4e60e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 4a4e60e

Please sign in to comment.