diff options
Diffstat (limited to 'src/state')
| -rw-r--r-- | src/state/peer.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/state/peer.rs b/src/state/peer.rs index a7c6cc9..88cbb58 100644 --- a/src/state/peer.rs +++ b/src/state/peer.rs @@ -89,6 +89,9 @@ pub(crate) struct PeerState { pub(crate) leads: bool, pub(crate) standing: Standing, + /// The party its handshakes name, in a swarm holding a store (`swarm::peer::members`). + #[cfg(feature = "federation")] + pub(crate) party: Option<String>, pub(crate) hello_state: HelloState, /// Wait between unanswered HELLOs; reset whenever a new handshake starts. pub(crate) hello_backoff: Backoff, @@ -300,6 +303,8 @@ impl PeerState { Self { leads, standing: Standing::default(), + #[cfg(feature = "federation")] + party: None, hello_state: HelloState::default(), hello_backoff: Backoff::new(HELLO_RETRY, HELLO_RETRY_MAX), probe_backoff: timing.probe_backoff(), |
