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/swarm/document_file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/swarm/document_file.rs') diff --git a/src/swarm/document_file.rs b/src/swarm/document_file.rs index c833656..6c71e42 100644 --- a/src/swarm/document_file.rs +++ b/src/swarm/document_file.rs @@ -66,7 +66,7 @@ pub(crate) async fn flush(state: &AppState) { if !state.is_ready().await { return; } - let own = state.remake.own_actors(); + let own = state.own_writers.all(); let (epoch, heads, signatures) = { let replica = state.doc.read().await; ( -- cgit v1.3.1