Skip to content

Commit

Permalink
fix: pass libp2p to the dht (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobheun committed Jul 10, 2020
1 parent 7b05d69 commit 5a84dd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ class Libp2p extends EventEmitter {
if (this._modules.dht) {
const DHT = this._modules.dht
this._dht = new DHT({
libp2p: this,
dialer: this.dialer,
peerId: this.peerId,
peerStore: this.peerStore,
Expand Down

0 comments on commit 5a84dd5

Please sign in to comment.