From 0850433577942b8e65d3dacc060f2548b93d9c17 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 21 Oct 2026 14:51:51 +0200 Subject: rename cluster to swarm everywhere! --- src/remake/snapshot.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/remake/snapshot.rs') diff --git a/src/remake/snapshot.rs b/src/remake/snapshot.rs index 507d8ac..bd99854 100644 --- a/src/remake/snapshot.rs +++ b/src/remake/snapshot.rs @@ -139,7 +139,7 @@ pub(crate) struct EpochMetadata { /// Highest sequence number per actor of `previous` contained in the snapshot. pub(crate) clock: BTreeMap, pub(crate) policy: Policy, - /// When the remake was proposed (unix ms): the point the cluster moved on. + /// When the remake was proposed (unix ms): the point the swarm moved on. pub(crate) proposed_at: u64, /// The remake kind and its translation input, for writes made before the epoch. pub(crate) kind: String, @@ -206,7 +206,7 @@ fn parse_metadata(doc: &AutoCommit, generation: u64) -> Result Result { let root = ChangeHash(epoch.id); let Some(change) = doc.get_change_by_hash(&root) else { @@ -653,14 +653,14 @@ mod tests { let policy = json!({}); let mut snap = build(&mut late, ¶ms(&base, &policy)).unwrap(); - // Meanwhile the cluster moved on in the new epoch. - let mut cluster = snap + // Meanwhile the swarm moved on in the new epoch. + let mut swarm = snap .doc .fork() - .with_actor(ActorId::from(&b"cluster-node"[..])); - cluster.put(ROOT, "new", 1_i64).unwrap(); - cluster.commit(); - let bytes = cluster.save(); + .with_actor(ActorId::from(&b"swarm-node"[..])); + swarm.put(ROOT, "new", 1_i64).unwrap(); + swarm.commit(); + let bytes = swarm.save(); late.put(ROOT, "mine", "late").unwrap(); late.commit(); -- cgit v1.3.1