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

Commit

Permalink
fix: use lowercase dht for options
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed May 19, 2017
1 parent bd17c3f commit 462707f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Node extends libp2p {
modules.discovery.push(webRTCStar.discovery)
}

if (options.DHT) {
if (options.dht) {
modules.DHT = KadDHT
}

Expand Down
2 changes: 1 addition & 1 deletion test/content-routing.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('.contentRouting', () => {
const tasks = _times(5, () => (cb) => {
createNode('/ip4/0.0.0.0/tcp/0', {
mdns: false,
DHT: true
dht: true
}, (err, node) => {
expect(err).to.not.exist()
node.start((err) => cb(err, node))
Expand Down
2 changes: 1 addition & 1 deletion test/peer-routing.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('.peerRouting', () => {
const tasks = _times(5, () => (cb) => {
createNode('/ip4/0.0.0.0/tcp/0', {
mdns: false,
DHT: true
dht: true
}, (err, node) => {
expect(err).to.not.exist()
node.start((err) => cb(err, node))
Expand Down

0 comments on commit 462707f

Please sign in to comment.