Skip to content

Commit b61a29a

Browse files
committed
chore: use topology interface
1 parent 5e45409 commit b61a29a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"it-length-prefixed": "^2.0.0",
3838
"it-pipe": "^1.0.1",
3939
"libp2p-floodsub": "libp2p/js-libp2p-floodsub#refactor/async",
40-
"libp2p-pubsub": "libp2p/js-libp2p-pubsub#refactor/async",
40+
"libp2p-pubsub": "~0.3.0",
4141
"p-map": "^3.0.0",
4242
"peer-id": "~0.13.3",
4343
"peer-info": "~0.17.0",

test/utils/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,14 @@ const createMockRegistrar = (registrarRecord) => ({
117117
}
118118
})
119119
},
120-
register: ({ multicodecs, handlers }) => {
120+
register: ({ multicodecs, _onConnect, _onDisconnect }) => {
121121
multicodecs.forEach((multicodec) => {
122122
const rec = registrarRecord[multicodec] || {}
123123

124124
registrarRecord[multicodec] = {
125125
...rec,
126-
...handlers
126+
onConnect: _onConnect,
127+
onDisconnect: _onDisconnect
127128
}
128129
})
129130
return multicodecs[0]

0 commit comments

Comments
 (0)