From 81be994e688d663d6ca1147460cf3e955211a15a Mon Sep 17 00:00:00 2001 From: jiacai2050 Date: Wed, 11 Dec 2024 23:07:47 +0800 Subject: [PATCH] fix lint --- horaedb/metric_engine/src/compaction/picker.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/horaedb/metric_engine/src/compaction/picker.rs b/horaedb/metric_engine/src/compaction/picker.rs index e15f8150ec..913ad31736 100644 --- a/horaedb/metric_engine/src/compaction/picker.rs +++ b/horaedb/metric_engine/src/compaction/picker.rs @@ -15,10 +15,7 @@ // specific language governing permissions and limitations // under the License. -use std::{ - collections::{BTreeMap, BTreeSet, HashMap}, - time::Duration, -}; +use std::{collections::BTreeMap, time::Duration}; use tracing::debug; @@ -177,7 +174,7 @@ mod tests { .pick_candidate(ssts.clone(), Some(15.into())) .unwrap(); - // ssts should be grouped by tree segments: + // ssts should be grouped into three segments: // | 0 1 | 2 3 | 4 | let excepted_task = Task { inputs: vec![ssts[3].clone(), ssts[2].clone()],