Skip to content

Commit

Permalink
exit consume_buffered_packets early if empty (#5149)
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge authored Mar 5, 2025
1 parent 30c95ff commit 111c97c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/banking_stage/consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ impl Consumer {
banking_stage_stats: &BankingStageStats,
slot_metrics_tracker: &mut LeaderSlotMetricsTracker,
) {
if vote_storage.is_empty() {
return;
}
let mut rebuffered_packet_count = 0;
let mut consumed_buffered_packets_count = 0;
let mut proc_start = Measure::start("consume_buffered_process");
Expand Down

0 comments on commit 111c97c

Please sign in to comment.