aboutsummaryrefslogtreecommitdiffstats
path: root/src/state/peer.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-01 02:45:46 +0100
committertv <tv@krebsco.de>2026-12-01 02:45:46 +0100
commit34bfcb661ed74bf40809576bbb388362cb7ffaa1 (patch)
tree8422db7db396dd4ae83403837cd954a94f882a7a /src/state/peer.rs
parent34434f7fd5a6bab1884a63c96679f48045f4bffd (diff)
parent6a06bc4a955cdf2b5a183c9ff21e25c79a4e5d9f (diff)
Merge remote-tracking branch 'events'HEADmaster
Diffstat (limited to 'src/state/peer.rs')
-rw-r--r--src/state/peer.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/state/peer.rs b/src/state/peer.rs
index 721a754..356736a 100644
--- a/src/state/peer.rs
+++ b/src/state/peer.rs
@@ -92,6 +92,9 @@ pub(crate) struct PeerState {
/// The party its handshakes name, in a swarm holding a store (`swarm::peer::members`).
#[cfg(feature = "federation")]
pub(crate) party: Option<String>,
+ /// The kind of document its handshakes say it holds, of those this node holds: what
+ /// this node says to it in turn, and passes on to it (`swarm::peer::inbound`).
+ pub(crate) kind: Option<&'static str>,
pub(crate) hello_state: HelloState,
/// Wait between unanswered HELLOs; reset whenever a new handshake starts.
pub(crate) hello_backoff: Backoff,
@@ -339,6 +342,7 @@ impl PeerState {
tree_writer: None,
left: false,
hello_attempts: 0,
+ kind: None,
last_hello_at: None,
unreachable_since: None,
incidents: Incidents::default(),