mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 15:28:01 -05:00
fix(engine): sync invalid header cache count gauge on hit eviction (#20567)
This commit is contained in:
@@ -48,6 +48,7 @@ impl InvalidHeaderCache {
|
|||||||
// if we get here, the entry has been hit too many times, so we evict it
|
// if we get here, the entry has been hit too many times, so we evict it
|
||||||
self.headers.remove(hash);
|
self.headers.remove(hash);
|
||||||
self.metrics.hit_evictions.increment(1);
|
self.metrics.hit_evictions.increment(1);
|
||||||
|
self.metrics.count.set(self.headers.len() as f64);
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user