Skip to content

Commit 93aa21a

Browse files
authored
fix(kad): re-expose Distance as KBucketDistance
Adds back in Distance as a public type. Follows `KBucketKey` naming for clarity. Resolves #4108. Pull-Request: #4109. Co-Authored-By: Josh Wilson <[email protected]> Co-Authored-By: Max Inden <[email protected]>
1 parent d5475fc commit 93aa21a

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ libp2p-floodsub = { version = "0.43.0", path = "protocols/floodsub" }
7373
libp2p-gossipsub = { version = "0.45.0", path = "protocols/gossipsub" }
7474
libp2p-identify = { version = "0.43.0", path = "protocols/identify" }
7575
libp2p-identity = { version = "0.2.0" }
76-
libp2p-kad = { version = "0.44.0", path = "protocols/kad" }
76+
libp2p-kad = { version = "0.44.1", path = "protocols/kad" }
7777
libp2p-mdns = { version = "0.44.0", path = "protocols/mdns" }
7878
libp2p-metrics = { version = "0.13.0", path = "misc/metrics" }
7979
libp2p-mplex = { version = "0.40.0", path = "muxers/mplex" }

protocols/kad/CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
## 0.44.0
1+
## 0.44.1
2+
3+
- Expose `KBucketDistance`.
4+
See [PR 4109].
5+
6+
[PR 4109]: https://github.com/libp2p/rust-libp2p/pull/4109
7+
8+
## 0.44.0
29

310
- Raise MSRV to 1.65.
411
See [PR 3715].

protocols/kad/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "libp2p-kad"
33
edition = "2021"
44
rust-version = "1.65.0"
55
description = "Kademlia protocol for libp2p"
6-
version = "0.44.0"
6+
version = "0.44.1"
77
authors = ["Parity Technologies <[email protected]>"]
88
license = "MIT"
99
repository = "https://github.com/libp2p/rust-libp2p"

protocols/kad/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub use behaviour::{
7676
Kademlia, KademliaBucketInserts, KademliaCaching, KademliaConfig, KademliaEvent,
7777
KademliaStoreInserts, ProgressStep, Quorum,
7878
};
79-
pub use kbucket::{EntryView, KBucketRef, Key as KBucketKey};
79+
pub use kbucket::{Distance as KBucketDistance, EntryView, KBucketRef, Key as KBucketKey};
8080
pub use protocol::KadConnectionType;
8181
pub use query::QueryId;
8282
pub use record_priv::{store, Key as RecordKey, ProviderRecord, Record};

0 commit comments

Comments
 (0)