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

Implement peerstore #38

Merged
merged 9 commits into from
Nov 20, 2017
Merged

Implement peerstore #38

merged 9 commits into from
Nov 20, 2017

Conversation

tomaka
Copy link
Member

@tomaka tomaka commented Nov 17, 2017

Adds the peerstore interface with two backends: one that stores everything in memory, and another one that stores the entries in a JSON file on flush.

This PR heavily touches datastore crate as well. I wrote datastore by naively copying the Go interface. This was enough to get started with peerstore, but actually using datastore made me realize the flaws that were in the Rust translation.

Also adds @folsen's prototype of the multihash crate. I think it could definitely get some big improvements, but since it's working I haven't really touched it. Just like what I say in the previous paragraph for datastore, I think the best thing to do is make the changes only after we are confident in exactly which capabilities we need from multihash.

@folsen folsen merged commit 373ef4a into libp2p:master Nov 20, 2017
@tomaka tomaka deleted the peerstore branch November 20, 2017 10:56
@tomaka tomaka mentioned this pull request Nov 23, 2017
mxinden pushed a commit to mxinden/rust-libp2p that referenced this pull request Nov 20, 2020
…nd-px

improved data structure for storing backoffs + slack backoff
dkuehr pushed a commit to openmina/rust-libp2p that referenced this pull request Oct 24, 2023
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