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

fix: dht config #359

Merged
merged 2 commits into from
Apr 17, 2019
Merged

fix: dht config #359

merged 2 commits into from
Apr 17, 2019

Conversation

jacobheun
Copy link
Contributor

Right now the dht config is pretty restrictive. superstruct doesn't allow for non defined properties to exist. This makes it annoying to add new config options to the dht. For example, if a new option was added to the DHT, myNewDHTConfigProperty, and js-ipfs wanted to use that, libp2p would have to be updated to support that config option.

Modules should take care of their own config validation, not libp2p. Libp2p should really only be concerned with validating the things it needs to run.

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

@jacobheun jacobheun merged commit f3801f0 into master Apr 17, 2019
@jacobheun jacobheun deleted the fix/dht-config branch April 17, 2019 13:04
@ghost ghost removed the status/in-progress In progress label Apr 17, 2019
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