Skip to content

Commit b2b0244

Browse files
committed
fix: incorrect error handling of lookups when searching for provider records
1 parent 1ba0310 commit b2b0244

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)