From 3c61583f27dd51948382b9de53fb92cc058ca5f6 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 20 Oct 2026 02:25:54 +0200 Subject: fix catch-up / compaction in general --- src/compaction/mod.rs | 2 -- src/compaction/switch.rs | 11 +++++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'src/compaction') diff --git a/src/compaction/mod.rs b/src/compaction/mod.rs index eb4cf1b..a7ae937 100644 --- a/src/compaction/mod.rs +++ b/src/compaction/mod.rs @@ -105,8 +105,6 @@ pub(crate) struct PeerSummary { pub(crate) id: String, /// Not dormant. pub(crate) active: bool, - /// Handshake completed. - pub(crate) established: bool, /// The epoch the peer last advertised. pub(crate) epoch: Option, } diff --git a/src/compaction/switch.rs b/src/compaction/switch.rs index 9f17df2..4093e7d 100644 --- a/src/compaction/switch.rs +++ b/src/compaction/switch.rs @@ -141,6 +141,11 @@ async fn switch(host: &H, id: &str, record: &Record) -> Result(host: &H, id: &str, record: &Record) -> Result