mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-13 01:01:23 +00:00
feat: allow configurable validators and selectors to the dht (#288)
* feat: allow configurable validators and selectors to the dht * chore: remove fallback
This commit is contained in:
@ -102,9 +102,11 @@ class Node extends EventEmitter {
|
||||
const enabledDiscovery = this._config.dht.enabledDiscovery !== false
|
||||
|
||||
this._dht = new DHT(this._switch, {
|
||||
kBucketSize: this._config.dht.kBucketSize || 20,
|
||||
kBucketSize: this._config.dht.kBucketSize,
|
||||
enabledDiscovery,
|
||||
datastore: this.datastore
|
||||
datastore: this.datastore,
|
||||
validators: this._config.dht.validators,
|
||||
selectors: this._config.dht.selectors
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user