apply [limit repairs to top staked... #28673] to non-MainnetBeta clusters (#29163)

This commit is contained in:
Jeff Biseda 2022-12-11 15:52:41 -08:00 committed by GitHub
parent 4ee318b2b2
commit 88a8f40bd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,7 @@ impl ServeRepair {
let identity_keypair = self.cluster_info.keypair().clone();
let my_id = identity_keypair.pubkey();
let max_buffered_packets = if root_bank.cluster_type() == ClusterType::Testnet {
let max_buffered_packets = if root_bank.cluster_type() != ClusterType::MainnetBeta {
2 * MAX_REQUESTS_PER_ITERATION
} else {
MAX_REQUESTS_PER_ITERATION