From bc80e84933189e05963a88f9b361f1061bd4cfd1 Mon Sep 17 00:00:00 2001 From: JGAntunes Date: Tue, 8 May 2018 03:09:03 +0100 Subject: [PATCH] chore: allow dht to be enabled via cli arg --- src/cli/commands/daemon.js | 4 ++++ src/http/index.js | 1 + 2 files changed, 5 insertions(+) diff --git a/src/cli/commands/daemon.js b/src/cli/commands/daemon.js index 2aeff2532b..6c6e4d9d30 100644 --- a/src/cli/commands/daemon.js +++ b/src/cli/commands/daemon.js @@ -22,6 +22,10 @@ module.exports = { type: 'boolean', default: false }) + .option('enable-dht-experiment', { + type: 'boolean', + default: false + }) }, handler (argv) { diff --git a/src/http/index.js b/src/http/index.js index 4a985ce3c6..93a5ec172e 100644 --- a/src/http/index.js +++ b/src/http/index.js @@ -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