Remove unnecessary var in banking_stage bench (#22408)

This commit is contained in:
Eric Warehime 2022-01-11 20:25:21 -08:00 committed by GitHub
parent de2a7fdc6c
commit 8161cee70f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -169,8 +169,8 @@ fn bench_banking(bencher: &mut Bencher, tx_type: TransactionType) {
let (vote_sender, vote_receiver) = unbounded();
let mut bank = Bank::new_for_benches(&genesis_config);
// Allow arbitrary transaction processing time for the purposes of this bench
bank.ns_per_slot = std::u128::MAX;
let bank = Arc::new(Bank::new_for_benches(&genesis_config));
bank.ns_per_slot = u128::MAX;
let bank = Arc::new(bank);
// set cost tracker limits to MAX so it will not filter out TXs
bank.write_cost_tracker()