forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ledger-tool: Move blockstore arg parsing to open_blockstore() (solana…
…-labs#34596) The open_blockstore() helper currently takes multiple configurable options. While the arguments are parsed at a high enough scope in main.rs to avoid repeated calls, this parsing is duplicated in the separate subcommand files (program.rs and bigtable.rs). The repeated parsing is redundant, and also prone to having to missing an arg (as was the case with bigtable not having wal_recovery_mode). So, this PR consolidates the parsing to a single function and uses that function across the previous callers.
- Loading branch information
steviez
authored
Jan 3, 2024
1 parent
5a3a10e
commit 0b49d82
Showing
4 changed files
with
59 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.