Skip to content

Commit b82d3bb

Browse files
authored
Fix release build compilation error (#7329)
1 parent ff24f14 commit b82d3bb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/src/banking_stage/transaction_scheduler/greedy_scheduler.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ impl<Tx: TransactionWithMeta> Scheduler<Tx> for GreedyScheduler<Tx> {
9999
});
100100
}
101101

102+
#[cfg(debug_assertions)]
102103
debug_assert!(
103104
self.common.batches.is_empty(),
104105
"batches must start empty for scheduling"

core/src/banking_stage/transaction_scheduler/prio_graph_scheduler.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ impl<Tx: TransactionWithMeta> Scheduler<Tx> for PrioGraphScheduler<Tx> {
196196
// Check transactions against filter, remove from container if it fails.
197197
chunked_pops(container, &mut self.prio_graph, &mut window_budget);
198198

199+
#[cfg(debug_assertions)]
199200
debug_assert!(
200201
self.common.batches.is_empty(),
201202
"batches must start empty for scheduling"

0 commit comments

Comments
 (0)