mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-04-03 00:01:04 +00:00
feat: pass libp2p as option to transport creation (#363)
This commit is contained in:
parent
bde30cac45
commit
b06ca1b3c7
@ -345,7 +345,7 @@ class Node extends EventEmitter {
|
|||||||
let t
|
let t
|
||||||
|
|
||||||
if (typeof Transport === 'function') {
|
if (typeof Transport === 'function') {
|
||||||
t = new Transport()
|
t = new Transport({ libp2p: this })
|
||||||
} else {
|
} else {
|
||||||
t = Transport
|
t = Transport
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user