Skip to content

Commit 729d93a

Browse files
authored
fix: remove dead batch_success metric from connection cache stats
1 parent a3d4abd commit 729d93a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

connection-cache/src/connection_cache_stats.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ pub struct ConnectionCacheStats {
1111
pub eviction_time_ms: AtomicU64,
1212
pub sent_packets: AtomicU64,
1313
pub total_batches: AtomicU64,
14-
pub batch_success: AtomicU64,
1514
pub batch_failure: AtomicU64,
1615
pub get_connection_ms: AtomicU64,
1716
pub get_connection_lock_ms: AtomicU64,
@@ -75,9 +74,7 @@ impl ConnectionCacheStats {
7574
self.sent_packets
7675
.fetch_add(num_packets as u64, Ordering::Relaxed);
7776
self.total_batches.fetch_add(1, Ordering::Relaxed);
78-
if is_success {
79-
self.batch_success.fetch_add(1, Ordering::Relaxed);
80-
} else {
77+
if !is_success {
8178
self.batch_failure.fetch_add(1, Ordering::Relaxed);
8279
}
8380
}

0 commit comments

Comments
 (0)