mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-07-31 18:02:22 +00:00
chore: remove peer-info usage on topology (#42)
* chore: remove peer-info usage on topology BREAKING CHANGE: topology api now uses peer-id instead of peer-info
This commit is contained in:
@@ -7,6 +7,10 @@ class MockPeerStore extends EventEmitter {
|
||||
super()
|
||||
this.peers = peers
|
||||
}
|
||||
|
||||
get (peerId) {
|
||||
return this.peers.get(peerId.toB58String())
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = MockPeerStore
|
||||
|
@@ -21,7 +21,8 @@ describe('multicodec topology compliance tests', () => {
|
||||
})
|
||||
|
||||
if (!registrar) {
|
||||
const peerStore = new MockPeerStore([])
|
||||
const peers = new Map()
|
||||
const peerStore = new MockPeerStore(peers)
|
||||
|
||||
registrar = {
|
||||
peerStore,
|
||||
|
Reference in New Issue
Block a user