From d61b29fc016fe51a82135227be9e40277451125b Mon Sep 17 00:00:00 2001 From: Sicheng Pan Date: Tue, 14 Jan 2025 16:22:17 -0800 Subject: [PATCH] Remove -a --- rust/worker/src/compactor/compaction_client.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/rust/worker/src/compactor/compaction_client.rs b/rust/worker/src/compactor/compaction_client.rs index 88123322c39..2e4e3b52956 100644 --- a/rust/worker/src/compactor/compaction_client.rs +++ b/rust/worker/src/compactor/compaction_client.rs @@ -34,9 +34,6 @@ pub enum CompactionCommand { /// Specify Uuids of the collections to compact. If unspecified, no compaction will occur unless --all flag is specified #[arg(short, long)] id: Vec, - /// Compact all collections available. If specified, the Uuids specified with --id will be ignored - #[arg(short, long)] - all: bool, }, } @@ -47,11 +44,11 @@ impl CompactionClient { pub async fn run(&self) -> Result<(), CompactionClientError> { match &self.command { - CompactionCommand::Compact { id, all } => { + CompactionCommand::Compact { id } => { let mut client = self.grpc_client().await?; let response = client .compact(CompactionRequest { - ids: (!all).then_some(CollectionIds { + ids: Some(CollectionIds { ids: id.iter().map(ToString::to_string).collect(), }), })