fix(engine): sync invalid header cache count gauge on hit eviction (#20567)

This commit is contained in:
VolodymyrBg
2025-12-22 16:59:18 +02:00
committed by GitHub
parent 5a3cffa3e9
commit ed7a5696b7

View File

@@ -48,6 +48,7 @@ impl InvalidHeaderCache {
// if we get here, the entry has been hit too many times, so we evict it
self.headers.remove(hash);
self.metrics.hit_evictions.increment(1);
self.metrics.count.set(self.headers.len() as f64);
None
}