Skip to content

Commit 4a4e60e

Browse files
authored
Merge pull request #554 from libp2p/fix/553
fix incorrect error handling during provider record lookups
2 parents 1ba0310 + b2b0244 commit 4a4e60e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ func (dht *IpfsDHT) findProvidersAsyncRoutine(ctx context.Context, key multihash
606606
},
607607
)
608608

609-
if err != nil && ctx.Err() == nil {
609+
if err == nil && ctx.Err() == nil {
610610
dht.refreshRTIfNoShortcut(kb.ConvertKey(string(key)), lookupRes)
611611
}
612612
}

0 commit comments

Comments
 (0)