mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-24 22:41:33 +00:00
fix: pubsub promisify (#456)
* fix: allow pubsub sub/unsub via promises * chore: fix linting errors
This commit is contained in:
committed by
Jacob Heun
parent
2a80618740
commit
ae6af20e8e
@ -93,7 +93,7 @@ describe('Transport Manager', () => {
|
||||
].map(a => Multiaddr(a))
|
||||
|
||||
const ourAddrs = [
|
||||
`/ip4/127.0.0.1/tcp/4002`,
|
||||
'/ip4/127.0.0.1/tcp/4002',
|
||||
`/ip4/192.168.0.3/tcp/4002/ipfs/${peerInfo.id.toB58String()}`
|
||||
]
|
||||
|
||||
@ -126,12 +126,12 @@ describe('Transport Manager', () => {
|
||||
const peerId = peerInfo.id.toB58String()
|
||||
const queryAddrs = [
|
||||
`/p2p-circuit/ipfs/${peerId}`,
|
||||
`/p2p-circuit/ip4/127.0.0.1/tcp/4002`,
|
||||
`/p2p-circuit/ip4/192.168.0.3/tcp/4002`,
|
||||
'/p2p-circuit/ip4/127.0.0.1/tcp/4002',
|
||||
'/p2p-circuit/ip4/192.168.0.3/tcp/4002',
|
||||
`/p2p-circuit/ip4/127.0.0.1/tcp/4002/ipfs/${peerId}`,
|
||||
`/p2p-circuit/ip4/192.168.0.3/tcp/4002/ipfs/${peerId}`,
|
||||
`/p2p-circuit/ip4/127.0.0.1/tcp/4002/ipfs/QmebzNV1kSzLfaYpSZdShuiABNUxoKT1vJmCdxM2iWsM2j`,
|
||||
`/p2p-circuit/ip4/192.168.0.3/tcp/4002/ipfs/QmebzNV1kSzLfaYpSZdShuiABNUxoKT1vJmCdxM2iWsM2j`,
|
||||
'/p2p-circuit/ip4/127.0.0.1/tcp/4002/ipfs/QmebzNV1kSzLfaYpSZdShuiABNUxoKT1vJmCdxM2iWsM2j',
|
||||
'/p2p-circuit/ip4/192.168.0.3/tcp/4002/ipfs/QmebzNV1kSzLfaYpSZdShuiABNUxoKT1vJmCdxM2iWsM2j',
|
||||
`/p2p-webrtc-star/ipfs/${peerId}`,
|
||||
`/p2p-websocket-star/ipfs/${peerId}`,
|
||||
`/p2p-stardust/ipfs/${peerId}`,
|
||||
@ -139,7 +139,7 @@ describe('Transport Manager', () => {
|
||||
].map(a => Multiaddr(a))
|
||||
|
||||
const ourAddrs = [
|
||||
`/ip4/127.0.0.1/tcp/4002`,
|
||||
'/ip4/127.0.0.1/tcp/4002',
|
||||
`/ip4/192.168.0.3/tcp/4002/ipfs/${peerInfo.id.toB58String()}`
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user