mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-12 17:41:22 +00:00
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.
This commit is contained in:
@ -1,4 +1,11 @@
|
||||
## 0.44.3 - unreleased
|
||||
## 0.44.4 - unreleased
|
||||
|
||||
- Implement common traits on `RoutingUpdate`.
|
||||
See [PR 4270].
|
||||
|
||||
[PR 4270]: https://github.com/libp2p/rust-libp2p/pull/4270
|
||||
|
||||
## 0.44.3
|
||||
|
||||
- Prevent simultaneous dials to peers.
|
||||
See [PR 4224].
|
||||
|
@ -3,7 +3,7 @@ name = "libp2p-kad"
|
||||
edition = "2021"
|
||||
rust-version = "1.65.0"
|
||||
description = "Kademlia protocol for libp2p"
|
||||
version = "0.44.3"
|
||||
version = "0.44.4"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
license = "MIT"
|
||||
repository = "https://github.com/libp2p/rust-libp2p"
|
||||
|
@ -3289,6 +3289,7 @@ impl fmt::Display for NoKnownPeers {
|
||||
impl std::error::Error for NoKnownPeers {}
|
||||
|
||||
/// The possible outcomes of [`Kademlia::add_address`].
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum RoutingUpdate {
|
||||
/// The given peer and address has been added to the routing
|
||||
/// table.
|
||||
|
Reference in New Issue
Block a user