Skip to content

Commit f749dbf

Browse files
committed
Switch to upstream released version of libp2p
1 parent 95f0345 commit f749dbf

File tree

3 files changed

+74
-46
lines changed

3 files changed

+74
-46
lines changed

Cargo.lock

Lines changed: 68 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/subspace-networking/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ unsigned-varint = { version = "0.7.1", features = ["futures", "asynchronous_code
4949
void = "1.0.2"
5050

5151
[dependencies.libp2p]
52-
git = "https://github.com/subspace/rust-libp2p"
53-
rev = "64f3baf300f68a861acf9de644fe980529c5618a"
52+
version = "0.53.1"
5453
default-features = false
5554
features = [
5655
"autonat",
@@ -73,4 +72,4 @@ features = [
7372

7473
[dev-dependencies]
7574
rand = "0.8.5"
76-
libp2p-swarm-test = { git = "https://github.com/subspace/rust-libp2p", rev = "64f3baf300f68a861acf9de644fe980529c5618a" }
75+
libp2p-swarm-test = "0.3.0"

crates/subspace-networking/src/constructor/transport.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ pub(super) fn build_transport(
4949
.boxed()
5050
};
5151

52-
#[cfg(not(windows))]
53-
let quic_config = QuicConfig::new(keypair);
54-
#[cfg(windows)]
55-
let quic_config = QuicConfig::new(keypair).path_mtu_discovery_config(None);
52+
let mut quic_config = QuicConfig::new(keypair);
53+
if cfg!(windows) {
54+
quic_config = quic_config.disable_path_mtu_discovery();
55+
}
5656

5757
let quic = QuicTransport::new(quic_config)
5858
.map(|(peer_id, muxer), _| (peer_id, StreamMuxerBox::new(muxer)));

0 commit comments

Comments
 (0)