mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-22 22:31:33 +00:00
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:
@ -41,9 +41,7 @@ use libp2p::{
|
||||
noise, ping,
|
||||
pnet::{PnetConfig, PreSharedKey},
|
||||
swarm::{NetworkBehaviour, SwarmBuilder, SwarmEvent},
|
||||
tcp,
|
||||
yamux::YamuxConfig,
|
||||
Multiaddr, PeerId, Transport,
|
||||
tcp, yamux, Multiaddr, PeerId, Transport,
|
||||
};
|
||||
use std::{env, error::Error, fs, path::Path, str::FromStr, time::Duration};
|
||||
|
||||
@ -53,7 +51,7 @@ pub fn build_transport(
|
||||
psk: Option<PreSharedKey>,
|
||||
) -> transport::Boxed<(PeerId, StreamMuxerBox)> {
|
||||
let noise_config = noise::Config::new(&key_pair).unwrap();
|
||||
let yamux_config = YamuxConfig::default();
|
||||
let yamux_config = yamux::Config::default();
|
||||
|
||||
let base_transport = tcp::async_io::Transport::new(tcp::Config::default().nodelay(true));
|
||||
let maybe_encrypted = match psk {
|
||||
|
Reference in New Issue
Block a user