Skip to content

Commit b06ca1b

Browse files
guysvjacobheun
authored andcommitted
feat: pass libp2p as option to transport creation (#363)
1 parent bde30ca commit b06ca1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ class Node extends EventEmitter {
345345
let t
346346

347347
if (typeof Transport === 'function') {
348-
t = new Transport()
348+
t = new Transport({ libp2p: this })
349349
} else {
350350
t = Transport
351351
}

0 commit comments

Comments
 (0)