From b6743899468db6304173aca4c7b32d05ea8d92c9 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 1 Dec 2026 03:23:21 +0000 Subject: remake: the switch worker looks when something changed, not every second It read the remake records and its peers' epochs once a second, whatever happened. It now looks when the records change, within a second of a peer saying another epoch than this node's, and when a vote is due; and by itself, once a second, only while something waits on time: a remake of this epoch open or committed, a rejoin, a catch-up, a member on another epoch. What it keeps for a time, an archived document or a remake's content, it wakes for when that is due. --- src/node.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/node.rs') diff --git a/src/node.rs b/src/node.rs index a4a5c85..792d62b 100644 --- a/src/node.rs +++ b/src/node.rs @@ -235,6 +235,7 @@ impl Node { neighbours: Default::default(), topology_changed: Default::default(), join_progress: Default::default(), + remake_wake: Default::default(), forget_records_changed: Default::default(), peers_due: Default::default(), pulling: Default::default(), -- cgit v1.3.1