Skip to content

Commit

Permalink
Merge pull request #50 from gregcusack/kco-multiple-clients
Browse files Browse the repository at this point in the history
fix bug for default bench-tps commands
  • Loading branch information
Greg Cusack authored Jan 18, 2024
2 parents df9c42d + 7d400b5 commit be66e75
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions k8s-cluster/src/scripts/client-startup-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@

clientToRun="$1"
benchTpsExtraArgs="$2"
clientType="${3:-thin-client}"
clientType=

shift 3
# check if benchTpsExtraArgs is set. if not then it will get set to client-type. Which then needs to get handled appropriately
if [[ "$benchTpsExtraArgs" == "thin-client" || "$benchTpsExtraArgs" == "tpu-client" || "$benchTpsExtraArgs" == "rpc-client" ]]; then
clientType=$benchTpsExtraArgs
benchTpsExtraArgs=
shift 2
else
clientType="${3:-thin-client}"
shift 3
fi

runtime_args=()
while [[ -n $1 ]]; do
Expand Down

0 comments on commit be66e75

Please sign in to comment.