We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 684e409 commit 62da5adCopy full SHA for 62da5ad
crates/sim/src/task.rs
@@ -85,7 +85,7 @@ where
85
// Only simulate if there are items to simulate.
86
// If there are not items, we sleep for the minimum of 50ms or until the deadline is reached,
87
// and restart the loop.
88
- if self.env.sim_items().is_empty() && Instant::now() >= finish_by {
+ if self.env.sim_items().is_empty() {
89
debug!("No items to simulate. Skipping simulation round");
90
let sleep_until =
91
(Instant::now() + Duration::from_millis(SIM_SLEEP_MS)).min(finish_by);
0 commit comments