Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache the XOR DHT Id for a peerID #67

Merged
merged 2 commits into from
Apr 2, 2020

Conversation

aarshkshah1992
Copy link
Contributor

@Stebalien @aschmahmann

For libp2p/go-libp2p#812 AND #64.

Saves us from having to do repeated SHA's.

// PeerInfo holds all related information for a peer in the K-Bucket.
type PeerInfo struct {
// peerInfo holds all related information for a peer in the K-Bucket.
type peerInfo struct {
Id peer.ID
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: no need to export this if we're unexporting the struct.

@aarshkshah1992 aarshkshah1992 changed the base branch from feat/new-management-policy to master April 2, 2020 21:11
@aarshkshah1992 aarshkshah1992 merged commit 671b1a0 into master Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants