Skip to content

Commit

Permalink
fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillLykov committed Mar 24, 2024
1 parent 304fcf2 commit 4374f5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bench-tps/src/log_transaction_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl LogTransactionService {
},
recv(block_processing_timer_receiver) -> _ => {
info!("sign_receiver queue len: {}", signature_receiver.len());
if signature_receiver.len() != 0 {
if !signature_receiver.is_empty() {
continue;
}
let mut measure_get_blocks = Measure::start("measure_get_blocks");
Expand Down Expand Up @@ -186,7 +186,7 @@ impl LogTransactionService {
start_slot = start_slot.saturating_add(NUM_SLOTS_PER_ITERATION);
tx_log_writer.flush();
block_log_writer.flush();
if sender_stopped && signature_to_tx_info.len() == 0 {
if sender_stopped && signature_to_tx_info.is_empty() {
info!("Stop LogTransactionService");
break;
}
Expand Down

0 comments on commit 4374f5a

Please sign in to comment.