mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 18:51:12 +00:00
Increment the retired metric instead of spawned (#4269)
This commit is contained in:
@@ -208,7 +208,7 @@ impl<'a> WorkerRelatedMetrics<'a> {
|
||||
/// When the worker was killed or died.
|
||||
pub(crate) fn on_retired(&self) {
|
||||
if let Some(metrics) = &self.metrics.0 {
|
||||
metrics.worker_spawned.with_label_values(&[self.flavor.as_label()]).inc();
|
||||
metrics.worker_retired.with_label_values(&[self.flavor.as_label()]).inc();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user