Make bigtable delete-slots actually usable (#20037) (#20041)

(cherry picked from commit 22f45dca80)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
mergify[bot]
2021-09-20 23:26:33 +00:00
committed by GitHub
parent b7fc704092
commit cfc0e2d61f

View File

@ -450,7 +450,7 @@ pub fn bigtable_process_command(ledger_path: &Path, matches: &ArgMatches<'_>) {
} }
("delete-slots", Some(arg_matches)) => { ("delete-slots", Some(arg_matches)) => {
let slots = values_t_or_exit!(arg_matches, "slots", Slot); let slots = values_t_or_exit!(arg_matches, "slots", Slot);
let dry_run = !value_t_or_exit!(arg_matches, "force", bool); let dry_run = !arg_matches.is_present("force");
runtime.block_on(delete_slots(slots, dry_run)) runtime.block_on(delete_slots(slots, dry_run))
} }
("first-available-block", Some(_arg_matches)) => runtime.block_on(first_available_block()), ("first-available-block", Some(_arg_matches)) => runtime.block_on(first_available_block()),