Skip to content

Commit

Permalink
fix: remove mplex prefix from muxer errors (#1304)
Browse files Browse the repository at this point in the history
Muxer errors are now standard across implementations so do not
depend on the `"MPLEX_"` prefix
  • Loading branch information
achingbrain committed Jul 25, 2022
1 parent 3c0fb13 commit 05e8e7e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/delegated-routing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion examples/libp2p-in-the-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "../../"
Expand Down
2 changes: 1 addition & 1 deletion examples/webrtc-direct/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion test/relay/relay.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
})
2 changes: 1 addition & 1 deletion test/upgrading/upgrader.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 05e8e7e

Please sign in to comment.