Skip to content

Commit

Permalink
feat: pass libp2p as option to transport creation (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
guysv authored and jacobheun committed May 17, 2019
1 parent bde30ca commit b06ca1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class Node extends EventEmitter {
let t

if (typeof Transport === 'function') {
t = new Transport()
t = new Transport({ libp2p: this })
} else {
t = Transport
}
Expand Down

0 comments on commit b06ca1b

Please sign in to comment.