Skip to content

Commit

Permalink
Switch to upstream released version of libp2p
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Nov 14, 2023
1 parent 95f0345 commit f749dbf
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 46 deletions.
107 changes: 68 additions & 39 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions crates/subspace-networking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ unsigned-varint = { version = "0.7.1", features = ["futures", "asynchronous_code
void = "1.0.2"

[dependencies.libp2p]
git = "https://github.com/subspace/rust-libp2p"
rev = "64f3baf300f68a861acf9de644fe980529c5618a"
version = "0.53.1"
default-features = false
features = [
"autonat",
Expand All @@ -73,4 +72,4 @@ features = [

[dev-dependencies]
rand = "0.8.5"
libp2p-swarm-test = { git = "https://github.com/subspace/rust-libp2p", rev = "64f3baf300f68a861acf9de644fe980529c5618a" }
libp2p-swarm-test = "0.3.0"
8 changes: 4 additions & 4 deletions crates/subspace-networking/src/constructor/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ pub(super) fn build_transport(
.boxed()
};

#[cfg(not(windows))]
let quic_config = QuicConfig::new(keypair);
#[cfg(windows)]
let quic_config = QuicConfig::new(keypair).path_mtu_discovery_config(None);
let mut quic_config = QuicConfig::new(keypair);
if cfg!(windows) {
quic_config = quic_config.disable_path_mtu_discovery();
}

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

0 comments on commit f749dbf

Please sign in to comment.