Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
e26984f2
Unverified
Commit
e26984f2
authored
Nov 12, 2021
by
Sergey Pepyakin
Committed by
GitHub
Nov 12, 2021
Browse files
Increment the retired metric instead of spawned (#4269)
parent
c18d42d4
Pipeline
#165766
canceled with stages
in 1 minute and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
node/core/pvf/src/metrics.rs
View file @
e26984f2
...
...
@@ -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_
spawn
ed
.with_label_values
(
&
[
self
.flavor
.as_label
()])
.inc
();
metrics
.worker_
retir
ed
.with_label_values
(
&
[
self
.flavor
.as_label
()])
.inc
();
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment