From 8a29efed857991417d12b8e21884dbbcb53ff4a0 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 Nov 2026 02:48:25 +0000 Subject: document: the writers a node wrote under are the document's, not a remake's The actors a node writes or wrote with in its current document (document::own::OwnWriters, AppState::own_writers) were kept by the remake state, which signing, the document file, sync and a dropped change read them from. They are the engine's: a document of a kind without writers of this sort has none, and needs no remake state for them. --- src/node.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/node.rs') diff --git a/src/node.rs b/src/node.rs index 3d1c882..5cf72c8 100644 --- a/src/node.rs +++ b/src/node.rs @@ -181,6 +181,7 @@ impl Node { change_events, timing: config.timing, remake: Arc::new(remake::RemakeState::new(config.clock.now_millis())), + own_writers: Default::default(), swarm_key: config.swarm_key, run_id: uuid::Uuid::new_v4().into_bytes(), handshakes: Default::default(), @@ -253,9 +254,9 @@ impl Node { clock: config.clock, }; for actor in config.earlier_actors { - state.remake.add_own_actor(actor); + state.own_writers.add(actor); } - state.remake.add_own_actor(initial_actor); + state.own_writers.add(initial_actor); trace!("Application state initialized"); Self { state, sync_rx } } -- cgit v1.3.1