aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/stats.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/swarm/stats.rs')
-rw-r--r--src/swarm/stats.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/swarm/stats.rs b/src/swarm/stats.rs
index ba75d68..8ab27e8 100644
--- a/src/swarm/stats.rs
+++ b/src/swarm/stats.rs
@@ -128,11 +128,10 @@ pub(crate) struct Relay {
/// payload's bytes.
pub(crate) delivered: u64,
pub(crate) delivered_bytes: u64,
- /// Sync messages sent (not offers), the bytes the envelope added to their
- /// Automerge messages, and of those the epoch's.
+ /// Sync messages sent (not offers), and the bytes the envelope added to their
+ /// Automerge messages.
pub(crate) framed: u64,
pub(crate) framing_bytes: u64,
- pub(crate) framing_id_bytes: u64,
/// Sync messages deflated (`compress`), their bytes before and after.
pub(crate) deflated: u64,
pub(crate) deflated_from: u64,
@@ -284,13 +283,11 @@ impl NodeStats {
inner.relay.deflated_to += to as u64;
}
- /// A sync message went out whose envelope added `bytes` to its Automerge message,
- /// `ids` of them the epoch.
- pub(crate) fn sync_framing(&self, bytes: usize, ids: usize) {
+ /// A sync message went out whose envelope added `bytes` to its Automerge message.
+ pub(crate) fn sync_framing(&self, bytes: usize) {
let mut inner = self.lock();
inner.relay.framed += 1;
inner.relay.framing_bytes += bytes as u64;
- inner.relay.framing_id_bytes += ids as u64;
}
/// A sync message taken as delivered went out, of `bytes` payload.