Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from dennis-tra/fix-missing-addresses
Browse files Browse the repository at this point in the history
fix missing addresses for found node
  • Loading branch information
iand authored Aug 30, 2023
2 parents c10e1a6 + e6af3ad commit 2bf54bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kademlia/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (b *NetworkBehaviour[K, A]) getNodeHandler(ctx context.Context, id kad.Node
nodeKey := key.HexString(id.Key())
b.nodeHandlersMu.Lock()
nh, ok := b.nodeHandlers[nodeKey]
if !ok {
if !ok || len(nh.Addresses()) == 0 {
info, err := b.rtr.GetNodeInfo(ctx, id)
if err != nil {
return nil, err
Expand Down

0 comments on commit 2bf54bd

Please sign in to comment.