Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

Commit 462707f

Browse files
committed
fix: use lowercase dht for options
1 parent bd17c3f commit 462707f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Node extends libp2p {
5959
modules.discovery.push(webRTCStar.discovery)
6060
}
6161

62-
if (options.DHT) {
62+
if (options.dht) {
6363
modules.DHT = KadDHT
6464
}
6565

test/content-routing.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('.contentRouting', () => {
2323
const tasks = _times(5, () => (cb) => {
2424
createNode('/ip4/0.0.0.0/tcp/0', {
2525
mdns: false,
26-
DHT: true
26+
dht: true
2727
}, (err, node) => {
2828
expect(err).to.not.exist()
2929
node.start((err) => cb(err, node))

test/peer-routing.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('.peerRouting', () => {
2222
const tasks = _times(5, () => (cb) => {
2323
createNode('/ip4/0.0.0.0/tcp/0', {
2424
mdns: false,
25-
DHT: true
25+
dht: true
2626
}, (err, node) => {
2727
expect(err).to.not.exist()
2828
node.start((err) => cb(err, node))

0 commit comments

Comments
 (0)