summaryrefslogtreecommitdiffstats
path: root/src/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs
index bbda4e4..cfa5ddf 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -492,6 +492,9 @@ pub(crate) struct AppState {
/// knows the swarm ID.
pub(crate) swarm_key: Option<Arc<crate::swarm::auth::SwarmKey>>,
+ /// Random per run of this node; our HELLOs carry it and replies must echo it.
+ pub(crate) run_id: transport::RunId,
+
/// While rejoining a newer epoch, the previous document, served read-only (and
/// marked stale) instead of answering 503.
pub(crate) stale: Arc<std::sync::RwLock<Option<StaleView>>>,