From 96d7744dd29a3c783b43a7a6697af7d5d5719a10 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 3 Nov 2026 05:20:59 +0100 Subject: add writer trees --- src/transport/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/transport/mod.rs') diff --git a/src/transport/mod.rs b/src/transport/mod.rs index 9ae8ff2..899f4b8 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -670,6 +670,10 @@ pub(crate) struct SyncEnvelope { /// not one it is still filling (joining, rejoining). Only such a peer can tell a /// catching-up node that it has everything; an empty document says nothing else. pub(crate) ready: bool, + /// Whose change it passes on along the writer's tree (`swarm::tree`), by pair key: + /// the writer's, on its own push and on every member's after; None otherwise + /// (answers, pulls). + pub(crate) writer: Option, } /// What a sync envelope carries. -- cgit v1.3.1