Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Artemka374 committed Jan 29, 2025
1 parent 118c917 commit ababb4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prover/crates/bin/prover_fri_gateway/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub(crate) enum Method {
#[derive(Debug, Metrics)]
#[metrics(prefix = "prover_fri_prover_fri_gateway")]
pub(crate) struct ProverFriGatewayMetrics {
#[metrics(label = "status_code")]
#[metrics(labels = ["status_code"])]
pub submitter_http_error: LabeledFamily<u16, Counter>,
#[metrics(labels = ["method", "status"], buckets = vise::Buckets::LATENCIES)]
pub call_latency: LabeledFamily<(Method, u16), Histogram<Duration>, 2>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl PeriodicProofSubmitter {
}
Err(err) => {
if let Some(status) = err.status() {
METRICS.submitter_http_error[status.as_u16()].inc();
METRICS.submitter_http_error[&status.as_u16()].inc();
} else {
tracing::warn!("Failed to decode status code from error");
}
Expand Down

0 comments on commit ababb4c

Please sign in to comment.