micro optimization fixes
This commit is contained in:
1 parent
0d7203f84b
commit
da60ecb719
36 files changed
+1781
-521
No files matched your search
@@ -234,6 +234,10 @@ impl ClientGeometry {
|
||||
matches_target
|
||||
}
|
||||
|
||||
pub fn waiting_for_commit(&self) -> bool {
|
||||
self.waiting_since.is_some()
|
||||
}
|
||||
|
||||
pub fn timed_out(&self, now: Duration) -> bool {
|
||||
self.waiting_since
|
||||
.is_some_and(|started| now.saturating_sub(started) >= CLIENT_COMMIT_TIMEOUT)
|
||||
|
||||
Reference in new issue
Block a user