Skip to content

Commit 7ad37a2

Browse files
chore(kad): remove deprecated symbols
Pull-Request: #4733.
1 parent 4d2983b commit 7ad37a2

File tree

2 files changed

+3
-27
lines changed

2 files changed

+3
-27
lines changed

protocols/kad/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
See [PR 4503](https://github.com/libp2p/rust-libp2p/pull/4503).
77
- Make previously "deprecated" `record` module private.
88
See [PR 4035](https://github.com/libp2p/rust-libp2p/pull/4035).
9+
- Remove previously deprecated type-aliases.
10+
Users should follow the convention of importing the `libp2p::kad` module and referring to symbols as `kad::Behaviour` etc.
11+
See [PR 4733](https://github.com/libp2p/rust-libp2p/pull/4733).
912

1013
## 0.44.6
1114

protocols/kad/src/lib.rs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -106,30 +106,3 @@ pub const PROTOCOL_NAME: StreamProtocol = protocol::DEFAULT_PROTO_NAME;
106106
/// Constant shared across tests for the [`Multihash`](libp2p_core::multihash::Multihash) type.
107107
#[cfg(test)]
108108
const SHA_256_MH: u64 = 0x12;
109-
110-
#[deprecated(note = "Import the `kad` module instead and refer to this type as `kad::Behaviour`.")]
111-
pub type Kademlia<TStore> = Behaviour<TStore>;
112-
113-
#[deprecated(
114-
note = "Import the `kad` module instead and refer to this type as `kad::BucketInserts`."
115-
)]
116-
pub type KademliaBucketInserts = BucketInserts;
117-
118-
#[deprecated(
119-
note = "Import the `kad` module instead and refer to this type as `kad::StoreInserts`."
120-
)]
121-
pub type KademliaStoreInserts = StoreInserts;
122-
123-
#[deprecated(note = "Import the `kad` module instead and refer to this type as `kad::Config`.")]
124-
pub type KademliaConfig = Config;
125-
126-
#[deprecated(note = "Import the `kad` module instead and refer to this type as `kad::Caching`.")]
127-
pub type KademliaCaching = Caching;
128-
129-
#[deprecated(note = "Import the `kad` module instead and refer to this type as `kad::Event`.")]
130-
pub type KademliaEvent = Event;
131-
132-
#[deprecated(
133-
note = "Import the `kad` module instead and refer to this type as `kad::ConnectionType`."
134-
)]
135-
pub type KadConnectionType = ConnectionType;

0 commit comments

Comments
 (0)