diff options
| author | tv <tv@krebsco.de> | 2026-11-04 23:32:19 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-04 23:32:19 +0100 |
| commit | 0203eeda95d31900dead926267e69575735e78c4 (patch) | |
| tree | 84263ad750f62e566c7dc469862ad324f60ad1ac | |
| parent | 2ee5211c855a63d29ef85307ab925ac97de76b02 (diff) | |
log why a delta
| -rw-r--r-- | src/swarm/sync.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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" |
