From adaceb5f562f14c00b0020364514331772019fc5 Mon Sep 17 00:00:00 2001 From: "Lei, HUANG" Date: Tue, 10 Oct 2023 14:57:34 +0800 Subject: [PATCH] fix: CR comments --- src/mito2/src/request.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mito2/src/request.rs b/src/mito2/src/request.rs index 5232fcf6a9aa..e2427b29481c 100644 --- a/src/mito2/src/request.rs +++ b/src/mito2/src/request.rs @@ -29,7 +29,7 @@ use common_telemetry::metric::Timer; use common_telemetry::tracing::log::info; use common_telemetry::warn; use datatypes::prelude::DataType; -use metrics::register_histogram; +use metrics::histogram; use prost::Message; use smallvec::SmallVec; use snafu::{ensure, OptionExt, ResultExt}; @@ -655,7 +655,7 @@ pub(crate) struct CompactionFinished { impl CompactionFinished { pub fn on_success(self) { // only update compaction time on success - register_histogram!(COMPACTION_ELAPSED_TOTAL).record(self.start_time.elapsed()); + histogram!(COMPACTION_ELAPSED_TOTAL, self.start_time.elapsed()); for sender in self.senders { sender.send(Ok(AffectedRows(0)));