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 a mock dht for use in testing #103

Closed
wants to merge 3 commits into from
Closed

Conversation

whyrusleeping
Copy link
Member

@jbenet @perfmode
I moved the code that was in testnet over into routing/mock and also implemented a Put and Get on a passed in datastore for testing.

@whyrusleeping whyrusleeping added the status/in-progress In progress label Sep 23, 2014
@btc
Copy link
Contributor

btc commented Sep 23, 2014

The reason it's nice to generate a client with a method is that it reduces conceptual overhead. By eliminating the step where you have to wire up the object graph, you simply say...

  1. I want to create a way for peers to join a network -> so create a virtual routing server.
  2. I need a handle that conforms to the Routing interface that I can give to a peer -> get a Routing client

@btc
Copy link
Contributor

btc commented Sep 23, 2014

LGTM

@btc
Copy link
Contributor

btc commented Sep 23, 2014

Oh one thing. The test for the mock should probably reside with the mock.

@btc
Copy link
Contributor

btc commented Sep 23, 2014

LGTM

@btc btc added codereview and removed status/in-progress In progress labels Sep 23, 2014
@jbenet
Copy link
Member

jbenet commented Sep 23, 2014

LGTM!

@btc
Copy link
Contributor

btc commented Sep 23, 2014

merged locally

@btc btc closed this Sep 23, 2014
@btc btc removed the codereview label Sep 23, 2014
@btc btc deleted the feat/mock-dht branch September 23, 2014 22:33
ariescodescream pushed a commit to ariescodescream/go-ipfs that referenced this pull request Oct 23, 2021
gx: update go-datastore, go-ds-badger
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.

3 participants