Skip to content

Commit

Permalink
fix: CR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
v0y4g3r committed Oct 10, 2023
1 parent 4b0261e commit adaceb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mito2/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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)));
Expand Down

0 comments on commit adaceb5

Please sign in to comment.