Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Jul 10, 2024
1 parent 0a4e733 commit 3d76375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/src/installed_scheduler_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,10 @@ impl SchedulingContext {

pub fn can_commit(&self) -> bool {
let (started_at, reached_max_height) = &mut *self.started_at.lock().unwrap();
if !reached_max_height && started_at.elapsed().as_millis() < 350 {
if !*reached_max_height && started_at.elapsed().as_millis() < 350 {
return true;
} else {
reached_max_height = true;
*reached_max_height = true;
return false;
}
}
Expand Down

0 comments on commit 3d76375

Please sign in to comment.