mirror of
https://github.com/Cuprate/cuprate.git
synced 2024-12-22 19:49:28 +00:00
expose connected peer's support flags
This commit is contained in:
parent
f9b847b227
commit
06b70d9a0a
2 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,7 @@ mod request_handler;
|
|||
mod timeout_monitor;
|
||||
|
||||
pub use connector::{ConnectRequest, Connector};
|
||||
use cuprate_wire::common::PeerSupportFlags;
|
||||
pub use handshaker::{DoHandshakeRequest, HandshakeError, HandshakerBuilder};
|
||||
|
||||
/// An internal identifier for a given peer, will be their address if known
|
||||
|
@ -62,6 +63,8 @@ pub struct PeerInformation<A> {
|
|||
pub direction: ConnectionDirection,
|
||||
/// The peer's [`PruningSeed`].
|
||||
pub pruning_seed: PruningSeed,
|
||||
/// The peer's [`PeerSupportFlags`].
|
||||
pub support_flags: PeerSupportFlags,
|
||||
/// The [`CoreSyncData`] of this peer.
|
||||
///
|
||||
/// Data across fields are not necessarily related, so [`CoreSyncData::top_id`] is not always the
|
||||
|
|
|
@ -455,6 +455,7 @@ where
|
|||
handle,
|
||||
direction,
|
||||
pruning_seed,
|
||||
support_flags: peer_node_data.support_flags,
|
||||
core_sync_data: Arc::new(Mutex::new(peer_core_sync)),
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue