From ca0dce6eae148fa1b9a902d6707a66a733f28b50 Mon Sep 17 00:00:00 2001 From: Andrew Fitzgerald Date: Sat, 15 Apr 2023 21:13:47 -0700 Subject: [PATCH] Simplify using additional arguments in bench-tps.sh (#31210) --- multinode-demo/bench-tps.sh | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/multinode-demo/bench-tps.sh b/multinode-demo/bench-tps.sh index c00abe85a..40af0d27d 100755 --- a/multinode-demo/bench-tps.sh +++ b/multinode-demo/bench-tps.sh @@ -19,14 +19,11 @@ usage() { exit 1 } -if [[ -z $1 ]]; then # default behavior - $solana_bench_tps \ - --entrypoint 127.0.0.1:8001 \ - --faucet 127.0.0.1:9900 \ - --duration 90 \ - --tx_count 50000 \ - --thread-batch-sleep-ms 0 \ +args=("$@") +default_arg --entrypoint "127.0.0.1:8001" +default_arg --faucet "127.0.0.1:9900" +default_arg --duration 90 +default_arg --tx_count 50000 +default_arg --thread-batch-sleep-ms 0 -else - $solana_bench_tps "$@" -fi +$solana_bench_tps "${args[@]}"