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

Commit 7bb838f

Browse files
JGAntunesdaviddias
authored andcommittedMay 8, 2018
feat: allow dht to be enabled via cli arg (#1340)
1 parent 1048c25 commit 7bb838f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
 

‎src/cli/commands/daemon.js

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ module.exports = {
2222
type: 'boolean',
2323
default: false
2424
})
25+
.option('enable-dht-experiment', {
26+
type: 'boolean',
27+
default: false
28+
})
2529
},
2630

2731
handler (argv) {

‎src/http/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ function HttpApi (repo, config, cliArgs) {
7070
pass: cliArgs && cliArgs.pass,
7171
EXPERIMENTAL: {
7272
pubsub: cliArgs && cliArgs.enablePubsubExperiment,
73+
dht: cliArgs && cliArgs.enableDhtExperiment,
7374
sharding: cliArgs && cliArgs.enableShardingExperiment
7475
},
7576
libp2p: libp2p

0 commit comments

Comments
 (0)
This repository has been archived.