We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06e8141 commit f736abeCopy full SHA for f736abe
1 file changed
crates/core/src/runloops/mod.rs
@@ -496,7 +496,7 @@ pub async fn start_block_production_runloop(
496
// Apply random execution delay to simulate out-of-order processing
497
if let Some(max_delay_ms) = transaction_execution_delay_ms {
498
if max_delay_ms > 0 {
499
- let delay = rand::random::<u64>() % (max_delay_ms + 1);
+ let delay = rand::random::<u64>() % max_delay_ms.saturating_add(1);
500
tokio::time::sleep(std::time::Duration::from_millis(delay)).await;
501
}
502
0 commit comments