diff --git a/banking-bench/src/main.rs b/banking-bench/src/main.rs index cdfb4989c7..8f610bfb7d 100644 --- a/banking-bench/src/main.rs +++ b/banking-bench/src/main.rs @@ -435,10 +435,10 @@ fn main() { ClusterInfo::new(node.info, keypair, SocketAddrSpace::Unspecified) }; let cluster_info = Arc::new(cluster_info); - let tpu_use_quic = matches.is_present("tpu_use_quic"); - let connection_cache = match tpu_use_quic { - true => ConnectionCache::new(DEFAULT_TPU_CONNECTION_POOL_SIZE), - false => ConnectionCache::with_udp(DEFAULT_TPU_CONNECTION_POOL_SIZE), + let tpu_disable_quic = matches.is_present("tpu_disable_quic"); + let connection_cache = match tpu_disable_quic { + false => ConnectionCache::new(DEFAULT_TPU_CONNECTION_POOL_SIZE), + true => ConnectionCache::with_udp(DEFAULT_TPU_CONNECTION_POOL_SIZE), }; let banking_stage = BankingStage::new_num_threads( &cluster_info,