Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
chore: use topology interface
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Nov 14, 2019
1 parent f84e744 commit 50ab805
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"debug": "^4.1.1",
"it-length-prefixed": "^2.0.0",
"it-pipe": "^1.0.1",
"libp2p-pubsub": "libp2p/js-libp2p-pubsub#refactor/async",
"libp2p-pubsub": "~0.3.0",
"p-map": "^3.0.0",
"protons": "^1.0.1",
"time-cache": "^0.3.0"
Expand Down
5 changes: 3 additions & 2 deletions test/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ exports.createMockRegistrar = (registrarRecord) => ({
handler
}
},
register: ({ multicodecs, handlers }) => {
register: ({ multicodecs, _onConnect, _onDisconnect }) => {
const rec = registrarRecord[multicodecs[0]] || {}

registrarRecord[multicodecs[0]] = {
...rec,
...handlers
onConnect: _onConnect,
onDisconnect: _onDisconnect
}

return multicodecs[0]
Expand Down

0 comments on commit 50ab805

Please sign in to comment.