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/state/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/state/mod.rs') diff --git a/src/state/mod.rs b/src/state/mod.rs index a812b91..4187654 100644 --- a/src/state/mod.rs +++ b/src/state/mod.rs @@ -111,6 +111,9 @@ pub(crate) struct AppState { /// Per-node remake state (prebuilt snapshots, switch status, archive). pub(crate) remake: Arc, + /// The writers this node writes or wrote under in its current document. + pub(crate) own_writers: Arc, + /// Pre-shared key every member must prove in the handshake; None admits any node /// that reaches us. pub(crate) swarm_key: Option>, -- cgit v1.3.1