Skip to content

Commit

Permalink
Fail when running the token-accounts-by-owner benchmark suite witho…
Browse files Browse the repository at this point in the history
…ut supplying `--mint` (#3964)

Log an error when running the `token-account-for-owner` suite without supplying `--mint`
  • Loading branch information
steveluscher authored Dec 7, 2024
1 parent 5564a94 commit 2325a5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions accounts-cluster-bench/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,9 @@ fn main() {
.takes_value(true)
.value_name("RPC_BENCH_TYPE(S)")
.multiple(true)
.requires_ifs(&[
("token-accounts-by-owner", "mint"),
])
.help("Spawn a thread which calls a specific RPC method in a loop to benchmark it"),
)
.get_matches();
Expand Down

0 comments on commit 2325a5a

Please sign in to comment.