From ac1ac64530e8444defa6af58f39700ba71983ebd Mon Sep 17 00:00:00 2001 From: "Lei, HUANG" Date: Fri, 13 Dec 2024 16:12:15 +0800 Subject: [PATCH] chore: format --- src/mito2/src/flush.rs | 5 ++++- src/mito2/src/worker/handle_compaction.rs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mito2/src/flush.rs b/src/mito2/src/flush.rs index 81e9efd90a00..09f45ca4f724 100644 --- a/src/mito2/src/flush.rs +++ b/src/mito2/src/flush.rs @@ -32,7 +32,10 @@ use crate::error::{ Error, FlushRegionSnafu, RegionClosedSnafu, RegionDroppedSnafu, RegionTruncatedSnafu, Result, }; use crate::manifest::action::{RegionEdit, RegionMetaAction, RegionMetaActionList}; -use crate::metrics::{FLUSH_BYTES_TOTAL, FLUSH_ELAPSED, FLUSH_ERRORS_TOTAL, FLUSH_REQUESTS_TOTAL, INFLIGHT_FLUSH_COUNT}; +use crate::metrics::{ + FLUSH_BYTES_TOTAL, FLUSH_ELAPSED, FLUSH_ERRORS_TOTAL, FLUSH_REQUESTS_TOTAL, + INFLIGHT_FLUSH_COUNT, +}; use crate::read::Source; use crate::region::options::IndexOptions; use crate::region::version::{VersionControlData, VersionControlRef}; diff --git a/src/mito2/src/worker/handle_compaction.rs b/src/mito2/src/worker/handle_compaction.rs index c45640755795..292eb237357b 100644 --- a/src/mito2/src/worker/handle_compaction.rs +++ b/src/mito2/src/worker/handle_compaction.rs @@ -18,7 +18,7 @@ use store_api::region_request::RegionCompactRequest; use store_api::storage::RegionId; use crate::error::RegionNotFoundSnafu; -use crate::metrics::{COMPACTION_REQUEST_COUNT}; +use crate::metrics::COMPACTION_REQUEST_COUNT; use crate::region::MitoRegionRef; use crate::request::{CompactionFailed, CompactionFinished, OnFailure, OptionOutputTx}; use crate::worker::RegionWorkerLoop;