feat: pass libp2p as option to transport creation (#363)

This commit is contained in:
Guy Sviry 2019-05-17 13:11:22 +03:00 committed by Jacob Heun
parent bde30cac45
commit b06ca1b3c7

View File

@ -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
}