AcctIdx: fix ledger-tool arg options (#20513)

This commit is contained in:
Jeff Washington (jwash) 2021-10-07 14:43:21 -05:00 committed by GitHub
parent 0da661de62
commit 6cd1a03bb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1936,11 +1936,12 @@ fn main() {
}
("verify", Some(arg_matches)) => {
let mut accounts_index_config = AccountsIndexConfig::default();
if let Some(bins) = value_t!(matches, "accounts_index_bins", usize).ok() {
if let Some(bins) = value_t!(arg_matches, "accounts_index_bins", usize).ok() {
accounts_index_config.bins = Some(bins);
}
if let Some(limit) = value_t!(matches, "accounts_index_memory_limit_mb", usize).ok() {
if let Some(limit) = value_t!(arg_matches, "accounts_index_memory_limit_mb", usize).ok()
{
accounts_index_config.index_limit_mb = Some(limit);
}