Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

feat: enable DHT by Routing.Type config key #3153

Merged
merged 20 commits into from
Jul 10, 2020

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Jul 8, 2020

  1. Adds Routing.Type configuration key with values
  • 'none' default, DHT disabled
  • 'dht' DHT start-as-client-auto-upgrade-to-server (not implemented in js-libp2p-kad-dht yet)
  • 'dhtserver' DHT server mode
  • 'dhtclient' DHT client mode
  1. Updates Core API to be compliant with the docs

@achingbrain achingbrain marked this pull request as ready for review July 10, 2020 13:52
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.

One minor doc clarification otherwise this looks good.

We should ensure this releases with [email protected] and the upcoming dht patch (should be 0.19.9)

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!
[email protected] shipped

@achingbrain
Copy link
Member Author

I've updated the minimum required libp2p & kad-dht and will merge when CI is green.

@achingbrain achingbrain changed the title fix: update dht module integration feat: enable DHT by Routing.Type config key Jul 10, 2020
@achingbrain achingbrain merged commit dfe15d7 into master Jul 10, 2020
@achingbrain achingbrain deleted the fix/update-dht-integration branch July 10, 2020 17:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants