diff options
Diffstat (limited to 'src/swarm/sync.rs')
| -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" |
