We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3d4abd commit 729d93aCopy full SHA for 729d93a
connection-cache/src/connection_cache_stats.rs
@@ -11,7 +11,6 @@ pub struct ConnectionCacheStats {
11
pub eviction_time_ms: AtomicU64,
12
pub sent_packets: AtomicU64,
13
pub total_batches: AtomicU64,
14
- pub batch_success: AtomicU64,
15
pub batch_failure: AtomicU64,
16
pub get_connection_ms: AtomicU64,
17
pub get_connection_lock_ms: AtomicU64,
@@ -75,9 +74,7 @@ impl ConnectionCacheStats {
75
74
self.sent_packets
76
.fetch_add(num_packets as u64, Ordering::Relaxed);
77
self.total_batches.fetch_add(1, Ordering::Relaxed);
78
- if is_success {
79
- self.batch_success.fetch_add(1, Ordering::Relaxed);
80
- } else {
+ if !is_success {
81
self.batch_failure.fetch_add(1, Ordering::Relaxed);
82
}
83
0 commit comments