From efbc9899ab92c34db607f26c0e1b676e1e9d1c81 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 1 Nov 2026 13:34:26 +0100 Subject: state: drop epoch_tx The stamp is the only lock-free epoch label. --- src/swarm/peer/epoch.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/swarm/peer') 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, -- cgit v1.3.1