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

refactor: examples/peer-and-content-routing #500

Merged

Conversation

vasco-santos
Copy link
Member

@vasco-santos vasco-santos commented Dec 9, 2019

This PR refactors the peer-and-content-routing example to the refactored async js-libp2p.

Needs:

@vasco-santos vasco-santos force-pushed the refactor/examples-peer-and-content-routing branch from aa87ade to 12cc970 Compare December 16, 2019 11:16
@vasco-santos vasco-santos requested review from jacobheun and removed request for jacobheun December 16, 2019 11:22
examples/peer-and-content-routing/1.js Outdated Show resolved Hide resolved
dht: {
// dht must be enabled
enabled: true,
kBucketSize: 20
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't use kBucketSize in the code, we should probably just leave it out here. Most users won't need to change the default.


console.log('Node %s is providing %s', node1.peerInfo.id.toB58String(), cid.toBaseEncodedString())
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this removed intentionally? If so, it should also be removed from the readme. Can you make sure the code in the readme matches what's in the js files

Copy link
Member Author

Choose a reason for hiding this comment

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

I added it back, I removed unintentionally

vasco-santos and others added 2 commits December 17, 2019 11:19
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
Copy link
Contributor

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

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

LGTM!

@jacobheun jacobheun merged commit fdb48c8 into refactor/async-await Dec 18, 2019
@jacobheun jacobheun deleted the refactor/examples-peer-and-content-routing branch December 18, 2019 02:37
jacobheun added a commit that referenced this pull request Jan 24, 2020
* refactor: examples-peer-and-content-routing

* chore: address review

* chore: review suggestions

Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
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.

2 participants