From 31e6e6a2801a19515daa7adda09b0d24d420f18e Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 25 Oct 2026 20:40:00 +0100 Subject: require catch-up source to make progress --- src/state.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index d14c1ea..af01cf0 100644 --- a/src/state.rs +++ b/src/state.rs @@ -649,6 +649,12 @@ pub(crate) struct CatchUpSource { pub(crate) peer: String, /// When it was chosen or last sent us anything. pub(crate) last_heard: Instant, + /// When it was chosen or last sent us a sync message: progress, not just liveness. + pub(crate) last_sync: Instant, + /// Our sync messages to it in a row whose answer didn't come in time. + pub(crate) reply_timeouts: u32, + /// When we last warned that catching up from it stalls. + pub(crate) last_warned: Option, /// Our last probe PING to it. pub(crate) last_probe: Option, /// Its keepalives in a row saying it wouldn't sync with us. -- cgit v1.3.1