mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 01:01:34 +00:00
feat(swarm): remove deprecated items
Related: https://github.com/libp2p/rust-libp2p/issues/3647. Pull-Request: #3956.
This commit is contained in:
@ -66,15 +66,6 @@ static NEXT_CONNECTION_ID: AtomicUsize = AtomicUsize::new(1);
|
||||
pub struct ConnectionId(usize);
|
||||
|
||||
impl ConnectionId {
|
||||
/// A "dummy" [`ConnectionId`].
|
||||
///
|
||||
/// Really, you should not use this, not even for testing but it is here if you need it.
|
||||
#[deprecated(
|
||||
since = "0.42.0",
|
||||
note = "Don't use this, it will be removed at a later stage again."
|
||||
)]
|
||||
pub const DUMMY: ConnectionId = ConnectionId(0);
|
||||
|
||||
/// Creates an _unchecked_ [`ConnectionId`].
|
||||
///
|
||||
/// [`Swarm`](crate::Swarm) enforces that [`ConnectionId`]s are unique and not reused.
|
||||
|
Reference in New Issue
Block a user