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 public keys and use better method for fetching #987

Merged
merged 2 commits into from
Apr 1, 2015

Conversation

whyrusleeping
Copy link
Member

created a new interface for optimized public key fetching that the DHT implements, otherwise fall back to a standard routing search.

@whyrusleeping whyrusleeping added topic/dht Topic dht topic/ipns Topic ipns labels Mar 30, 2015
@whyrusleeping whyrusleeping self-assigned this Mar 30, 2015
@whyrusleeping whyrusleeping added the status/in-progress In progress label Mar 30, 2015
return "", err
}

pubkey = pk
Copy link
Member

Choose a reason for hiding this comment

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

this is a pretty big function-- maybe abstract this piece (grabbing the key from routing) into a

func (r *routingResolver) getPublicKey(...) {}

Copy link
Member

Choose a reason for hiding this comment

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

Maybe even this could go in routing/routing.go as:

func GetPublicKey(r Routing, ...) {}

@jbenet
Copy link
Member

jbenet commented Mar 30, 2015

Couple comments above, otherwise lgtm

@whyrusleeping whyrusleeping added codereview and removed status/in-progress In progress labels Mar 31, 2015
@jbenet jbenet mentioned this pull request Mar 31, 2015
52 tasks
@whyrusleeping whyrusleeping force-pushed the feat/pubkey-cache branch 2 times, most recently from 69c7122 to bb1b0d5 Compare April 1, 2015 01:16
whyrusleeping added a commit that referenced this pull request Apr 1, 2015
cache public keys and use better method for fetching
@whyrusleeping whyrusleeping merged commit be598ad into master Apr 1, 2015
@jbenet jbenet deleted the feat/pubkey-cache branch April 1, 2015 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/dht Topic dht topic/ipns Topic ipns
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants