aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-01 13:34:26 +0100
committertv <tv@krebsco.de>2026-11-01 13:34:26 +0100
commitefbc9899ab92c34db607f26c0e1b676e1e9d1c81 (patch)
tree3c84f3ab6755228c25033e477959ac4904db841b /src/swarm
parent484efbe2d62dbad445b0b9b771a3532c8566f024 (diff)
state: drop epoch_tx
The stamp is the only lock-free epoch label.
Diffstat (limited to 'src/swarm')
-rw-r--r--src/swarm/peer/epoch.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/swarm/peer/epoch.rs b/src/swarm/peer/epoch.rs
index d97db0f..d00a903 100644
--- a/src/swarm/peer/epoch.rs
+++ b/src/swarm/peer/epoch.rs
@@ -13,7 +13,8 @@ use crate::transport;
///
/// `seq` is the peer's `epoch_seq` with it. A message with a lower one than we have was
/// sent before the peer's last epoch change and delivered late: its epoch isn't
-/// recorded, so it can't flip our view of the peer back. The count starts over when the
+/// recorded, so it can't flip our view of the peer back. The message itself still
+/// counts: if its epoch is ours, its sync is applied (it is data of our epoch). The count starts over when the
/// peer restarts, which its HELLO or HELLO_REPLY tells by a new run (`run`).
pub(super) async fn observe_peer_epoch(
state: &AppState,