From af3cfaecd6c557f582b01ed230315bcbdd8dc0d8 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Mon, 5 Sep 2022 17:26:21 +0200 Subject: [PATCH 1/3] muxers/yamux: Remove dead code --- muxers/yamux/src/lib.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/muxers/yamux/src/lib.rs b/muxers/yamux/src/lib.rs index 5b109f2b3b0..1c4c9e7c7c9 100644 --- a/muxers/yamux/src/lib.rs +++ b/muxers/yamux/src/lib.rs @@ -50,10 +50,6 @@ impl fmt::Debug for Yamux { } } -/// A token to poll for an outbound substream. -#[derive(Debug)] -pub struct OpenSubstreamToken(()); - impl Yamux> where C: AsyncRead + AsyncWrite + Send + Unpin + 'static, From 7f4895463a0053f4fa42cce364c5628010a1f4be Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Mon, 5 Sep 2022 17:28:50 +0200 Subject: [PATCH 2/3] Bump yamux version --- Cargo.toml | 2 +- muxers/yamux/CHANGELOG.md | 6 ++++++ muxers/yamux/Cargo.toml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7249e70cb4c..81ca470395c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -97,7 +97,7 @@ libp2p-swarm = { version = "0.39.0", path = "swarm" } libp2p-swarm-derive = { version = "0.30.0", path = "swarm-derive" } libp2p-uds = { version = "0.34.0", path = "transports/uds", optional = true } libp2p-wasm-ext = { version = "0.35.0", path = "transports/wasm-ext", default-features = false, optional = true } -libp2p-yamux = { version = "0.39.0", path = "muxers/yamux", optional = true } +libp2p-yamux = { version = "0.40.0", path = "muxers/yamux", optional = true } multiaddr = { version = "0.14.0" } parking_lot = "0.12.0" pin-project = "1.0.0" diff --git a/muxers/yamux/CHANGELOG.md b/muxers/yamux/CHANGELOG.md index 5544ad15ab4..39b107b084a 100644 --- a/muxers/yamux/CHANGELOG.md +++ b/muxers/yamux/CHANGELOG.md @@ -1,3 +1,9 @@ +# 0.40.0 [unreleased] + +- Remove `OpenSubstreamToken` as it is dead code. See [PR XXXX]. + +[PR XXXX]: https://github.com/libp2p/rust-libp2p/pull/XXXX/ + # 0.39.0 - Update to `libp2p-core` `v0.35.0` diff --git a/muxers/yamux/Cargo.toml b/muxers/yamux/Cargo.toml index 02dfb832d8d..096054a0254 100644 --- a/muxers/yamux/Cargo.toml +++ b/muxers/yamux/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-yamux" edition = "2021" rust-version = "1.56.1" description = "Yamux multiplexing protocol for libp2p" -version = "0.39.0" +version = "0.40.0" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" From 95a8e4f4a32a97db7b15e77682656609fa275d50 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Mon, 5 Sep 2022 17:30:24 +0200 Subject: [PATCH 3/3] Update changelog entry --- muxers/yamux/CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/muxers/yamux/CHANGELOG.md b/muxers/yamux/CHANGELOG.md index 39b107b084a..b8a264f0f7c 100644 --- a/muxers/yamux/CHANGELOG.md +++ b/muxers/yamux/CHANGELOG.md @@ -1,8 +1,8 @@ # 0.40.0 [unreleased] -- Remove `OpenSubstreamToken` as it is dead code. See [PR XXXX]. +- Remove `OpenSubstreamToken` as it is dead code. See [PR 2873]. -[PR XXXX]: https://github.com/libp2p/rust-libp2p/pull/XXXX/ +[PR 2873]: https://github.com/libp2p/rust-libp2p/pull/2873/ # 0.39.0