Skip to content

Commit

Permalink
chore: lintfix
Browse files Browse the repository at this point in the history
  • Loading branch information
apskhem committed Jan 13, 2025
1 parent 732ca0b commit e6b1287
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions catalyst-gateway/bin/src/metrics/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const CLIENT_METRIC_LABELS: [&str; 2] = ["client", "status_code"];

/// HTTP Request duration histogram.
pub(crate) static HTTP_REQ_DURATION_MS: LazyLock<HistogramVec> = LazyLock::new(|| {
#[allow(clippy::ignored_unit_patterns)]
register_histogram_vec!(
"http_request_duration_ms",
"Duration of HTTP requests in milliseconds",
Expand All @@ -24,7 +23,6 @@ pub(crate) static HTTP_REQ_DURATION_MS: LazyLock<HistogramVec> = LazyLock::new(|

/// HTTP Request CPU Time histogram.
pub(crate) static HTTP_REQ_CPU_TIME_MS: LazyLock<HistogramVec> = LazyLock::new(|| {
#[allow(clippy::ignored_unit_patterns)]
register_histogram_vec!(
"http_request_cpu_time_ms",
"CPU Time of HTTP requests in milliseconds",
Expand All @@ -43,7 +41,6 @@ pub(crate) static HTTP_REQ_CPU_TIME_MS: LazyLock<HistogramVec> = LazyLock::new(|

/// HTTP Request count histogram.
pub(crate) static HTTP_REQUEST_COUNT: LazyLock<IntCounterVec> = LazyLock::new(|| {
#[allow(clippy::ignored_unit_patterns)]
register_int_counter_vec!(
"http_request_count",
"Number of HTTP requests",
Expand All @@ -54,7 +51,6 @@ pub(crate) static HTTP_REQUEST_COUNT: LazyLock<IntCounterVec> = LazyLock::new(||

/// Client Request Count histogram.
pub(crate) static CLIENT_REQUEST_COUNT: LazyLock<IntCounterVec> = LazyLock::new(|| {
#[allow(clippy::ignored_unit_patterns)]
register_int_counter_vec!(
"client_request_count",
"Number of HTTP requests per client",
Expand Down
2 changes: 1 addition & 1 deletion catalyst-gateway/bin/src/metrics/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl MemoryMetrics {
/// This function spawns a thread that updates the global `MemoryMetrics`
/// structure at regular intervals defined by `UPDATE_INTERVAL_MILLI`.
pub(crate) fn start_metrics_updater() {
let stats = Region::new(&GLOBAL);
let stats = Region::new(GLOBAL);

thread::spawn(move || {
let interval = Duration::from_millis(UPDATE_INTERVAL_MILLI);
Expand Down

0 comments on commit e6b1287

Please sign in to comment.