feat: enable dht by default (#313)

BREAKING CHANGE: dht experimental flag was removed and a dht.enabled property was added to the config
This commit is contained in:
Vasco Santos
2019-01-29 17:57:09 +00:00
committed by Jacob Heun
parent ebaab3e47f
commit c4cab007af
13 changed files with 59 additions and 59 deletions

View File

@ -102,7 +102,7 @@ class Node extends EventEmitter {
}
// dht provided components (peerRouting, contentRouting, dht)
if (this._config.EXPERIMENTAL.dht) {
if (this._config.dht.enabled) {
const DHT = this._modules.dht
const enabledDiscovery = this._config.dht.enabledDiscovery !== false