From 0203eeda95d31900dead926267e69575735e78c4 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 4 Nov 2026 23:32:19 +0100 Subject: log why a delta --- src/swarm/sync.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/swarm/sync.rs b/src/swarm/sync.rs index 10ebf9f..94153ff 100644 --- a/src/swarm/sync.rs +++ b/src/swarm/sync.rs @@ -181,8 +181,14 @@ async fn deliver_sync_to_peer(state: &AppState, peer: &str) -> Result<()> { peer_state.sync.nothing_to_send(); return None; } + // And why it is too large here: the threshold, lowered by the + // throughput measured to the peer or a message that failed whole + // to it lately (`Blobs::delta_threshold_for`). info!( message_bytes = payload.0.len(), + threshold = delta_threshold, + throughput = ?rate.map(|rate| rate as u64), + failed_whole = ?failed, from = spec.from.len(), to = spec.to.len(), "Sync message too large; offering the changes as a blob" -- cgit v1.3.1