diff options
Diffstat (limited to 'src/remake/snapshot.rs')
| -rw-r--r-- | src/remake/snapshot.rs | 8 |
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>, } |
