Skip to content

Commit

Permalink
Remove -a
Browse files Browse the repository at this point in the history
  • Loading branch information
Sicheng Pan committed Jan 15, 2025
1 parent fa2d027 commit d61b29f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions rust/worker/src/compactor/compaction_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Uuid>,
/// Compact all collections available. If specified, the Uuids specified with --id will be ignored
#[arg(short, long)]
all: bool,
},
}

Expand All @@ -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(),
}),
})
Expand Down

0 comments on commit d61b29f

Please sign in to comment.