aboutsummaryrefslogtreecommitdiffstats
path: root/src/state/peer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/peer.rs')
-rw-r--r--src/state/peer.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/state/peer.rs b/src/state/peer.rs
index 356736a..768fead 100644
--- a/src/state/peer.rs
+++ b/src/state/peer.rs
@@ -95,6 +95,10 @@ pub(crate) struct PeerState {
/// 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>,
+ /// Whether it holds a set of events beside the Automerge document its handshakes
+ /// say, a node of both kinds as this one: it sent what a set says (`swarm::set`).
+ #[cfg(feature = "federation")]
+ pub(crate) set_beside: bool,
pub(crate) hello_state: HelloState,
/// Wait between unanswered HELLOs; reset whenever a new handshake starts.
pub(crate) hello_backoff: Backoff,
@@ -343,6 +347,8 @@ impl PeerState {
left: false,
hello_attempts: 0,
kind: None,
+ #[cfg(feature = "federation")]
+ set_beside: false,
last_hello_at: None,
unreachable_since: None,
incidents: Incidents::default(),