From cfc0e2d61f88d0b7ab215f4745a204ae12b939fe Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 20 Sep 2021 23:26:33 +0000 Subject: [PATCH] Make bigtable delete-slots actually usable (#20037) (#20041) (cherry picked from commit 22f45dca809d76c872ff5df38642acd615544ca3) Co-authored-by: Ryo Onodera --- ledger-tool/src/bigtable.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledger-tool/src/bigtable.rs b/ledger-tool/src/bigtable.rs index 2e112abba0..82e7be4383 100644 --- a/ledger-tool/src/bigtable.rs +++ b/ledger-tool/src/bigtable.rs @@ -450,7 +450,7 @@ pub fn bigtable_process_command(ledger_path: &Path, matches: &ArgMatches<'_>) { } ("delete-slots", Some(arg_matches)) => { 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)) } ("first-available-block", Some(_arg_matches)) => runtime.block_on(first_available_block()),