mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-03-16 15:40:49 +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
|
||||
|
||||
if (typeof Transport === 'function') {
|
||||
t = new Transport()
|
||||
t = new Transport({ libp2p: this })
|
||||
} else {
|
||||
t = Transport
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user