Skip to content

Commit

Permalink
cli: Use --use-rpc flag correctly during program deployments (#1008)
Browse files Browse the repository at this point in the history
cli: Use --use-rpc flag correctly
  • Loading branch information
joncinque authored Apr 23, 2024
1 parent bf041ce commit 550f806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2815,7 +2815,7 @@ fn send_deploy_messages(
solana_client::tpu_client::TpuClientConfig::default(),
cache,
);
let tpu_client = use_rpc.then(|| rpc_client
let tpu_client = (!use_rpc).then(|| rpc_client
.runtime()
.block_on(tpu_client_fut)
.expect("Should return a valid tpu client")
Expand Down

0 comments on commit 550f806

Please sign in to comment.