mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-17 20:02:43 +00:00
Add sync network context cache size metrics (#6049)
* Add sync network context cache size metrics
This commit is contained in:
@@ -570,6 +570,8 @@ impl<T: BeaconChainTypes> SyncManager<T> {
|
||||
// unless there is a bug.
|
||||
let mut prune_lookups_interval = tokio::time::interval(Duration::from_secs(15));
|
||||
|
||||
let mut register_metrics_interval = tokio::time::interval(Duration::from_secs(5));
|
||||
|
||||
// process any inbound messages
|
||||
loop {
|
||||
tokio::select! {
|
||||
@@ -582,6 +584,9 @@ impl<T: BeaconChainTypes> SyncManager<T> {
|
||||
_ = prune_lookups_interval.tick() => {
|
||||
self.block_lookups.prune_lookups();
|
||||
}
|
||||
_ = register_metrics_interval.tick() => {
|
||||
self.network.register_metrics();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user