Skip to content

Commit 23d7d1a

Browse files
authored
feat(kad): implement common traits on RoutingUpdate
A few weeks ago when I was debugging my wrong setup with kademlia, I could not conveniently debug `RoutingUpdate` after adding an address to the DHT. It would be nice to have a few derivable traits on a public enum. Pull-Request: #4270.
1 parent 8ff2cf3 commit 23d7d1a

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
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.2" }
76-
libp2p-kad = { version = "0.44.3", path = "protocols/kad" }
76+
libp2p-kad = { version = "0.44.4", path = "protocols/kad" }
7777
libp2p-mdns = { version = "0.44.0", path = "protocols/mdns" }
7878
libp2p-metrics = { version = "0.13.1", 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.3 - unreleased
1+
## 0.44.4 - unreleased
2+
3+
- Implement common traits on `RoutingUpdate`.
4+
See [PR 4270].
5+
6+
[PR 4270]: https://github.com/libp2p/rust-libp2p/pull/4270
7+
8+
## 0.44.3
29

310
- Prevent simultaneous dials to peers.
411
See [PR 4224].

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.3"
6+
version = "0.44.4"
77
authors = ["Parity Technologies <[email protected]>"]
88
license = "MIT"
99
repository = "https://github.com/libp2p/rust-libp2p"

protocols/kad/src/behaviour.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3289,6 +3289,7 @@ impl fmt::Display for NoKnownPeers {
32893289
impl std::error::Error for NoKnownPeers {}
32903290

32913291
/// The possible outcomes of [`Kademlia::add_address`].
3292+
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
32923293
pub enum RoutingUpdate {
32933294
/// The given peer and address has been added to the routing
32943295
/// table.

0 commit comments

Comments
 (0)