From 76ae62596a1e19e496f3138dc1b795b7b17ce2ab Mon Sep 17 00:00:00 2001 From: steviez Date: Mon, 30 Jan 2023 10:56:07 -0600 Subject: [PATCH] ledger-tool: Fix argument matching for accounts_db_ancient_append_vecs (#29976) The logic was searching for argument in global argument matches when it should have been searching in the subcommand matches. --- ledger-tool/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ledger-tool/src/main.rs b/ledger-tool/src/main.rs index 0070526cc0..4c42db9999 100644 --- a/ledger-tool/src/main.rs +++ b/ledger-tool/src/main.rs @@ -2746,7 +2746,7 @@ fn main() { ), filler_accounts_config, ancient_append_vec_offset: value_t!( - matches, + arg_matches, "accounts_db_ancient_append_vecs", i64 ) @@ -3011,7 +3011,7 @@ fn main() { let accounts_db_config = Some(AccountsDbConfig { ancient_append_vec_offset: value_t!( - matches, + arg_matches, "accounts_db_ancient_append_vecs", i64 )