mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-03-30 14:21:04 +00:00
Looks like this project stopped running the `test:node` npm script when it was migrated to gh actions. Re-enable it and fix all the related test failures.
22 lines
409 B
JavaScript
22 lines
409 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,
|
|
enabled: true
|
|
}
|
|
}
|
|
})
|
|
|
|
module.exports.routingOptions = routingOptions
|