fixed client bandwidth being not correctly deducted

This commit is contained in:
Jędrzej Stuczyński
2024-09-18 11:12:24 +01:00
parent c8c3928575
commit 2a6aa13ecd
@@ -79,7 +79,7 @@ impl ClientBandwidth {
let mut guard = self.inner.write().await;
guard.bandwidth.bytes -= decrease;
guard.bytes_at_last_sync -= decrease;
guard.bytes_delta_since_sync -= decrease;
}
pub(crate) async fn increase_bandwidth_with_flushed(