Skip to content

Commit

Permalink
fix: bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
taco-paco committed Nov 5, 2024
1 parent 62ec377 commit e6b3835
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions api/src/handlers/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,16 @@ pub(crate) async fn do_metered_action<T: Successable>(
} else {
metrics
.action_failures_total
.with_label_values(&[action_label_value]);
.with_label_values(&[action_label_value])
.inc();
Ok(val)
}
}
Err(err) => {
metrics
.action_failures_total
.with_label_values(&[action_label_value]);
.with_label_values(&[action_label_value])
.inc();
Err(err)
}
}
Expand Down
2 changes: 1 addition & 1 deletion api/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl Metrics {
"/compile-scarb"
| "/compile-scarb-async"
| "/compile-to-sierra"
| "compile-to-sierra-async" => self
| "/compile-to-sierra-async" => self
.action_total
.with_label_values(&[COMPILATION_LABEL_VALUE])
.inc(),
Expand Down

0 comments on commit e6b3835

Please sign in to comment.