Add sync batch state metrics (#8847)

Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com>
This commit is contained in:
Jimmy Chen
2026-02-19 12:57:53 +11:00
committed by GitHub
parent 561898fc1c
commit 4588971085
8 changed files with 108 additions and 5 deletions

View File

@@ -371,6 +371,10 @@ where
.update(network, &local, &mut self.awaiting_head_peers);
}
pub fn register_metrics(&self) {
self.chains.register_metrics();
}
/// Kickstarts sync.
pub fn resume(&mut self, network: &mut SyncNetworkContext<T>) {
for (removed_chain, sync_type, remove_reason) in