fix: remove mplex prefix from muxer errors (#1304)

Muxer errors are now standard across implementations so do not
depend on the `"MPLEX_"` prefix
This commit is contained in:
Alex Potsides
2022-07-25 13:37:31 +01:00
committed by GitHub
parent 3c0fb13bab
commit 05e8e7ead9
6 changed files with 6 additions and 6 deletions

View File

@@ -9,7 +9,7 @@
"@libp2p/delegated-content-routing": "^2.0.1",
"@libp2p/delegated-peer-routing": "^2.0.1",
"@libp2p/kad-dht": "^3.0.0",
"@libp2p/mplex": "^4.0.1",
"@libp2p/mplex": "^4.0.2",
"@libp2p/webrtc-star": "^3.0.0",
"@libp2p/websockets": "^3.0.0",
"react": "^17.0.2",

View File

@@ -11,7 +11,7 @@
"dependencies": {
"@chainsafe/libp2p-noise": "^7.0.1",
"@libp2p/bootstrap": "^2.0.0",
"@libp2p/mplex": "^4.0.1",
"@libp2p/mplex": "^4.0.2",
"@libp2p/webrtc-star": "^3.0.0",
"@libp2p/websockets": "^3.0.0",
"libp2p": "../../"

View File

@@ -12,7 +12,7 @@
"@libp2p/webrtc-direct": "^2.0.0",
"@chainsafe/libp2p-noise": "^7.0.1",
"@libp2p/bootstrap": "^2.0.0",
"@libp2p/mplex": "^4.0.1",
"@libp2p/mplex": "^4.0.2",
"libp2p": "../../",
"wrtc": "^0.4.7"
},

View File

@@ -180,7 +180,7 @@
"@libp2p/interop": "^2.0.0",
"@libp2p/kad-dht": "^3.0.0",
"@libp2p/mdns": "^3.0.0",
"@libp2p/mplex": "^4.0.1",
"@libp2p/mplex": "^4.0.2",
"@libp2p/pubsub": "^3.0.1",
"@libp2p/tcp": "^3.0.0",
"@libp2p/topology": "^3.0.0",

View File

@@ -202,6 +202,6 @@ describe('Dialing (via relay, TCP)', () => {
// because we timed out, the remote should have reset the stream
await expect(all(stream.source)).to.eventually.be.rejected
.with.property('code', 'ERR_MPLEX_STREAM_RESET')
.with.property('code', 'ERR_STREAM_RESET')
})
})

View File

@@ -654,7 +654,7 @@ describe('libp2p.upgrader', () => {
expect(streamCount).to.equal(1)
await expect(localToRemote.newStream(protocol)).to.eventually.be.rejected()
.with.property('code', 'ERR_MPLEX_STREAM_RESET')
.with.property('code', 'ERR_STREAM_RESET')
})
it('should limit the number of outgoing streams that can be opened using a protocol', async () => {