Skip to content

Commit

Permalink
replace mplex by yamux in src/lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger committed Mar 27, 2023
1 parent e3e1462 commit 5667da0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libp2p/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ pub use libp2p_identity::PeerId;
),
feature = "websocket",
feature = "noise",
feature = "yamux"
feature = "yamux",
))]
#[cfg_attr(
all(
Expand Down Expand Up @@ -224,7 +224,7 @@ pub async fn development_transport(
.authenticate(noise::NoiseAuthenticated::xx(&keypair).unwrap())
.multiplex(core::upgrade::SelectUpgrade::new(
yamux::YamuxConfig::default(),
libp2p_mplex::MplexConfig::default(),
yamux::YamuxConfig::default(),
))
.timeout(std::time::Duration::from_secs(20))
.boxed())
Expand Down Expand Up @@ -279,7 +279,7 @@ pub fn tokio_development_transport(
.authenticate(noise::NoiseAuthenticated::xx(&keypair).unwrap())
.multiplex(core::upgrade::SelectUpgrade::new(
yamux::YamuxConfig::default(),
libp2p_mplex::MplexConfig::default(),
yamux::YamuxConfig::default(),
))
.timeout(std::time::Duration::from_secs(20))
.boxed())
Expand Down

0 comments on commit 5667da0

Please sign in to comment.