summaryrefslogtreecommitdiffstats
path: root/src/remake
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-26 20:38:07 +0100
committertv <tv@krebsco.de>2026-10-26 20:38:07 +0100
commit5247296250355b7f75a993856d3675f73114d253 (patch)
tree5cd40c49e9a05b88d1ef3bce715a93e81d4d126e /src/remake
parent354a4ccbd097dcf35e74b1cf193fd84756b1e149 (diff)
remove some dead comments
Diffstat (limited to 'src/remake')
-rw-r--r--src/remake/snapshot.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/remake/snapshot.rs b/src/remake/snapshot.rs
index d093a33..b8c784e 100644
--- a/src/remake/snapshot.rs
+++ b/src/remake/snapshot.rs
@@ -18,10 +18,6 @@
//! at the snapshot change itself, so edits made afterwards through the store API can't
//! change what the protocol sees.
-// `Snapshot::clock` is kept for returning nodes (step 7); late nodes read the clock from
-// the metadata instead.
-#![cfg_attr(not(test), allow(dead_code))]
-
use std::collections::BTreeMap;
use automerge::{ActorId, AutoCommit, ChangeHash, transaction::CommitOptions};
@@ -61,7 +57,9 @@ pub(crate) struct Snapshot {
/// A document consisting of exactly that one change.
pub(crate) doc: AutoCommit,
/// Highest sequence number per actor (hex) contained in the base. A change
- /// (actor, seq) is part of the snapshot iff seq <= clock[actor].
+ /// (actor, seq) is part of the snapshot iff seq <= clock[actor]. Read by tests only:
+ /// nodes read the clock from the epoch metadata (`EpochMetadata::clock`).
+ #[cfg_attr(not(test), allow(dead_code))]
pub(crate) clock: BTreeMap<String, u64>,
}