Skip to content

Commit

Permalink
chore(kad): remove deprecated symbols
Browse files Browse the repository at this point in the history
Pull-Request: #4733.
  • Loading branch information
thomaseizinger authored Oct 26, 2023
1 parent 4d2983b commit 7ad37a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 27 deletions.
3 changes: 3 additions & 0 deletions protocols/kad/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
See [PR 4503](https://github.com/libp2p/rust-libp2p/pull/4503).
- Make previously "deprecated" `record` module private.
See [PR 4035](https://github.com/libp2p/rust-libp2p/pull/4035).
- Remove previously deprecated type-aliases.
Users should follow the convention of importing the `libp2p::kad` module and referring to symbols as `kad::Behaviour` etc.
See [PR 4733](https://github.com/libp2p/rust-libp2p/pull/4733).

## 0.44.6

Expand Down
27 changes: 0 additions & 27 deletions protocols/kad/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,30 +106,3 @@ pub const PROTOCOL_NAME: StreamProtocol = protocol::DEFAULT_PROTO_NAME;
/// Constant shared across tests for the [`Multihash`](libp2p_core::multihash::Multihash) type.
#[cfg(test)]
const SHA_256_MH: u64 = 0x12;

#[deprecated(note = "Import the `kad` module instead and refer to this type as `kad::Behaviour`.")]
pub type Kademlia<TStore> = Behaviour<TStore>;

#[deprecated(
note = "Import the `kad` module instead and refer to this type as `kad::BucketInserts`."
)]
pub type KademliaBucketInserts = BucketInserts;

#[deprecated(
note = "Import the `kad` module instead and refer to this type as `kad::StoreInserts`."
)]
pub type KademliaStoreInserts = StoreInserts;

#[deprecated(note = "Import the `kad` module instead and refer to this type as `kad::Config`.")]
pub type KademliaConfig = Config;

#[deprecated(note = "Import the `kad` module instead and refer to this type as `kad::Caching`.")]
pub type KademliaCaching = Caching;

#[deprecated(note = "Import the `kad` module instead and refer to this type as `kad::Event`.")]
pub type KademliaEvent = Event;

#[deprecated(
note = "Import the `kad` module instead and refer to this type as `kad::ConnectionType`."
)]
pub type KadConnectionType = ConnectionType;

0 comments on commit 7ad37a2

Please sign in to comment.