chore(swarm): Remove deprecated functions (#3170)

Remove functions deprecated in 0.41.0.
This commit is contained in:
Hannes
2022-12-09 15:44:08 +01:00
committed by GitHub
parent 1c2712c1bc
commit 8cb79f4c79
22 changed files with 47 additions and 95 deletions

View File

@ -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.