Skip to content

Commit

Permalink
Fix catchup message labelling (#765)
Browse files Browse the repository at this point in the history
* Label ContinueCatchUp as a valid message in prometheus metric.
  • Loading branch information
limemloh authored and abizjak committed Mar 1, 2023
1 parent 1b247bf commit 68c2157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions concordium-node/src/consensus_ffi/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ impl ConsensusFfiResponse {
/// Get the label. This is used when updating metrics of the prometheus
/// exporter.
pub fn label(&self) -> &str {
if self.is_successful() {
if self.is_successful() || matches!(self, Self::ContinueCatchUp) {
"valid"
} else if let ConsensusFfiResponse::DuplicateEntry = self {
} else if let Self::DuplicateEntry = self {
"duplicate"
} else {
"invalid"
Expand Down

0 comments on commit 68c2157

Please sign in to comment.