Skip to content

Commit 62da5ad

Browse files
committed
chore: rm dumb comparison
1 parent 684e409 commit 62da5ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/sim/src/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ where
8585
// Only simulate if there are items to simulate.
8686
// If there are not items, we sleep for the minimum of 50ms or until the deadline is reached,
8787
// and restart the loop.
88-
if self.env.sim_items().is_empty() && Instant::now() >= finish_by {
88+
if self.env.sim_items().is_empty() {
8989
debug!("No items to simulate. Skipping simulation round");
9090
let sleep_until =
9191
(Instant::now() + Duration::from_millis(SIM_SLEEP_MS)).min(finish_by);

0 commit comments

Comments
 (0)