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

Be extra explicit on DHT configuration in CONFIGURATION.md #951

Merged
merged 1 commit into from
Jun 10, 2021

Conversation

mcclure
Copy link
Contributor

@mcclure mcclure commented Jun 7, 2021

This weekend I hooked up DHT in my js-libp2p app. It did not work, because I had not set dht.enable:true in the configuration on the client side. I spent an embarrassing amount of time trying to fix this and wound up filing a bug. Oops.

However, one thing occurs to me. I remember reading CONFIGURATION.md at some point while setting my app up, and I think I didn't realize the configuration was necessary because of the line "enabled by default" immediately after. There are two "enabled:true" lines immediately next to each other, one is labeled "enabled by default" (and is), the other is disabled by default. I think I saw "enabled:true // by default" and thought ah! So I don't need to set it! and totally blanked that there was two lines away a second "enabled:true" with no such comment.

The fact I got confused is 100% my fault. But if CONFIGURATION.md confused me, it might confuse other people, so here is a patch that adds a comment to the other line to make it clear that the second enabled:true is NOT true by default and in fact is very important.

Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

lgtm Thanks for adding this

@vasco-santos vasco-santos merged commit 2959794 into libp2p:master Jun 10, 2021
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