mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-03-17 16:10:52 +00:00
25 lines
460 B
JavaScript
25 lines
460 B
JavaScript
|
'use strict'
|
||
|
|
||
|
const KadDht = require('libp2p-kad-dht')
|
||
|
const mergeOptions = require('merge-options')
|
||
|
const baseOptions = require('../utils/base-options')
|
||
|
|
||
|
module.exports.baseOptions = baseOptions
|
||
|
|
||
|
const routingOptions = mergeOptions(baseOptions, {
|
||
|
modules: {
|
||
|
dht: KadDht
|
||
|
},
|
||
|
config: {
|
||
|
dht: {
|
||
|
kBucketSize: 20,
|
||
|
randomWalk: {
|
||
|
enabled: true
|
||
|
},
|
||
|
enabled: true
|
||
|
}
|
||
|
}
|
||
|
})
|
||
|
|
||
|
module.exports.routingOptions = routingOptions
|