feat(yamux): rename symbols to follow module-based naming convention

Implements our naming convention for the `libp2p-yamux` crate.

Related: #2217.

Pull-Request: #3852.
This commit is contained in:
Thomas Eizinger
2023-05-01 04:25:52 +02:00
committed by GitHub
parent 193d2a1a6c
commit b1cdf8d4bb
35 changed files with 108 additions and 92 deletions

View File

@ -32,7 +32,7 @@ use libp2p_swarm::{
dial_opts::DialOpts, AddressScore, NetworkBehaviour, Swarm, SwarmBuilder, SwarmEvent,
THandlerErr,
};
use libp2p_yamux::YamuxConfig;
use libp2p_yamux as yamux;
use std::fmt::Debug;
use std::time::Duration;
@ -216,7 +216,7 @@ where
.authenticate(PlainText2Config {
local_public_key: identity.public(),
})
.multiplex(YamuxConfig::default())
.multiplex(yamux::Config::default())
.timeout(Duration::from_secs(20))
.boxed();