From 6fa188610ce0959e0b61ecaf63f5babf826d2071 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 24 Oct 2026 04:23:38 +0200 Subject: pull missing changes Nodes push changes to their neighbours but don't relay them directly. In a partial mesh, nodes can learn about missing changes via keepalive messages and can pull them from their neighbours. --- src/state.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index 7574e35..10471df 100644 --- a/src/state.rs +++ b/src/state.rs @@ -536,6 +536,8 @@ pub(crate) struct AppState { /// Target number of neighbours (`--neighbours`); up to this many + 1 members the /// swarm is a full mesh. pub(crate) neighbours_k: usize, + /// The neighbour we are pulling changes from, and since when (`swarm::relay`). + pub(crate) pulling: Arc>>, /// Our neighbours, once known (`swarm::topology`). pub(crate) neighbours: Arc>>, -- cgit v1.3.1