Skip to content

Commit

Permalink
Merge pull request #870 from libp2p/issue-868
Browse files Browse the repository at this point in the history
Add provider record addresses to peerstore
  • Loading branch information
guillaumemichel committed Aug 22, 2023
2 parents 2a515e8 + b564493 commit 2cbe38a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ func (dht *IpfsDHT) handleAddProvider(ctx context.Context, p peer.ID, pmes *pb.M
continue
}

dht.providerStore.AddProvider(ctx, key, peer.AddrInfo{ID: p})
dht.providerStore.AddProvider(ctx, key, peer.AddrInfo{ID: pi.ID, Addrs: pi.Addrs})
}

return nil, nil
Expand Down

0 comments on commit 2cbe38a

Please sign in to comment.