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

Commit

Permalink
feat: allow dht to be enabled via cli arg (#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
JGAntunes authored and daviddias committed May 8, 2018
1 parent 1048c25 commit 7bb838f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cli/commands/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ module.exports = {
type: 'boolean',
default: false
})
.option('enable-dht-experiment', {
type: 'boolean',
default: false
})
},

handler (argv) {
Expand Down
1 change: 1 addition & 0 deletions src/http/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ function HttpApi (repo, config, cliArgs) {
pass: cliArgs && cliArgs.pass,
EXPERIMENTAL: {
pubsub: cliArgs && cliArgs.enablePubsubExperiment,
dht: cliArgs && cliArgs.enableDhtExperiment,
sharding: cliArgs && cliArgs.enableShardingExperiment
},
libp2p: libp2p
Expand Down

0 comments on commit 7bb838f

Please sign in to comment.