mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-31 17:01:58 +00:00
fix(kad): re-export NodeStatus
The `EntryView` struct exposes the node status however its type is not public making it impossible to use the status field. This change re-exports `NodeStatus`. Related: #4108. Pull-Request: #4645.
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
## 0.44.6 - unreleased
|
||||
|
||||
- Rename `Kademlia` symbols to follow naming convention.
|
||||
- Rename `Kademlia` symbols to follow naming convention.
|
||||
See [PR 4547].
|
||||
|
||||
- Fix a bug where we didn't detect a remote peer moving into client-state.
|
||||
See [PR 4639](https://github.com/libp2p/rust-libp2p/pull/4639).
|
||||
- Re-export `NodeStatus`.
|
||||
See [PR 4645].
|
||||
|
||||
[PR 4547]: https://github.com/libp2p/rust-libp2p/pull/4547
|
||||
[PR 4645]: https://github.com/libp2p/rust-libp2p/pull/4645
|
||||
|
||||
<!-- Internal changes
|
||||
|
||||
|
@@ -72,6 +72,7 @@ mod entry;
|
||||
#[allow(clippy::assign_op_pattern)]
|
||||
mod key;
|
||||
|
||||
pub use bucket::NodeStatus;
|
||||
pub use entry::*;
|
||||
|
||||
use arrayvec::{self, ArrayVec};
|
||||
|
@@ -72,7 +72,9 @@ pub use behaviour::{
|
||||
pub use behaviour::{
|
||||
Behaviour, BucketInserts, Caching, Config, Event, ProgressStep, Quorum, StoreInserts,
|
||||
};
|
||||
pub use kbucket::{Distance as KBucketDistance, EntryView, KBucketRef, Key as KBucketKey};
|
||||
pub use kbucket::{
|
||||
Distance as KBucketDistance, EntryView, KBucketRef, Key as KBucketKey, NodeStatus,
|
||||
};
|
||||
pub use protocol::ConnectionType;
|
||||
pub use query::QueryId;
|
||||
pub use record_priv::{store, Key as RecordKey, ProviderRecord, Record};
|
||||
|
Reference in New Issue
Block a user