banking bench tpu_disable_quic (#30883)

tpu_use_quic -> tpu_disable_quic
This commit is contained in:
Andrew Fitzgerald 2023-03-24 09:47:04 -07:00 committed by GitHub
parent 3e500d9e92
commit 6c58a84d85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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,