mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-04 20:21:33 +00:00
chore(swarm): Remove deprecated functions (#3170)
Remove functions deprecated in 0.41.0.
This commit is contained in:
@ -193,7 +193,7 @@
|
||||
//! // can be observed.
|
||||
//! let behaviour = ping::Behaviour::new(ping::Config::new().with_keep_alive(true));
|
||||
//!
|
||||
//! let mut swarm = Swarm::new(transport, behaviour, local_peer_id);
|
||||
//! let mut swarm = Swarm::with_async_std_executor(transport, behaviour, local_peer_id);
|
||||
//!
|
||||
//! Ok(())
|
||||
//! }
|
||||
@ -245,7 +245,7 @@
|
||||
//! // can be observed.
|
||||
//! let behaviour = ping::Behaviour::new(ping::Config::new().with_keep_alive(true));
|
||||
//!
|
||||
//! let mut swarm = Swarm::new(transport, behaviour, local_peer_id);
|
||||
//! let mut swarm = Swarm::with_async_std_executor(transport, behaviour, local_peer_id);
|
||||
//!
|
||||
//! // Tell the swarm to listen on all interfaces and a random, OS-assigned
|
||||
//! // port.
|
||||
@ -290,7 +290,7 @@
|
||||
//! // can be observed.
|
||||
//! let behaviour = ping::Behaviour::new(ping::Config::new().with_keep_alive(true));
|
||||
//!
|
||||
//! let mut swarm = Swarm::new(transport, behaviour, local_peer_id);
|
||||
//! let mut swarm = Swarm::with_async_std_executor(transport, behaviour, local_peer_id);
|
||||
//!
|
||||
//! // Tell the swarm to listen on all interfaces and a random, OS-assigned
|
||||
//! // port.
|
||||
|
Reference in New Issue
Block a user