chore: rm cached bytes gauge (#3513)

This commit is contained in:
Matthias Seitz
2023-07-01 00:27:17 +02:00
committed by GitHub
parent 02492daac9
commit 7cb4a71cf6

View File

@@ -512,9 +512,9 @@ where
}
}
#[inline]
fn update_cached_metrics(&self) {
self.metrics.cached_count.set(self.cache.len() as f64);
self.metrics.cached_bytes.set(self.cache.memory_usage() as f64);
}
}
@@ -584,8 +584,6 @@ where
struct CacheMetrics {
/// The number of entities in the cache.
cached_count: Gauge,
/// The memory usage of the cache in bytes.
cached_bytes: Gauge,
/// The number of queued consumers.
queued_consumers_count: Gauge,
}