Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Reverse if clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Oct 27, 2023
1 parent 70e1654 commit 9491e33
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ledger/src/blockstore_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,13 @@ fn process_batches(
log_messages_bytes_limit: Option<usize>,
prioritization_fee_cache: &PrioritizationFeeCache,
) -> Result<()> {
if !bank.has_installed_scheduler() {
if bank.has_installed_scheduler() {
debug!(
"process_batches()/schedule_batches_for_execution({} batches)",
batches.len()
);
schedule_batches_for_execution(bank, batches)
} else {
debug!(
"process_batches()/rebatch_and_execute_batches({} batches)",
batches.len()
Expand All @@ -317,12 +323,6 @@ fn process_batches(
log_messages_bytes_limit,
prioritization_fee_cache,
)
} else {
debug!(
"process_batches()/schedule_batches_for_execution({} batches)",
batches.len()
);
schedule_batches_for_execution(bank, batches)
}
}

Expand Down

0 comments on commit 9491e33

Please sign in to comment.