aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/sync.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/swarm/sync.rs')
-rw-r--r--src/swarm/sync.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/swarm/sync.rs b/src/swarm/sync.rs
index 5ee36a2..a6467a7 100644
--- a/src/swarm/sync.rs
+++ b/src/swarm/sync.rs
@@ -561,9 +561,9 @@ pub(crate) async fn handle_sync(
return Ok(None);
}
let carried = message.carries_changes();
- let sizes = if carried { message.sizes() } else { (0, 0) };
+ let change_bytes = if carried { message.change_bytes() } else { 0 };
if carried {
- stats.carrying(sizes);
+ stats.carrying(change_bytes);
}
let mut peer_state = peer_state_mutex.blocking_lock();
@@ -621,7 +621,7 @@ pub(crate) async fn handle_sync(
if !crate::document::changes::holds_all(&replica.doc, &said) {
stats.waiting();
} else {
- stats.nothing_new(payload_len, writer.is_some(), delivered, sizes);
+ stats.nothing_new(payload_len, writer.is_some(), delivered, change_bytes);
}
}
// Whose they are, to pass them on along their writers' trees, however they