fix: schedule pending resizes with bounded deadlines (#42)
Co-authored-by: Samuel Onoja <[email protected]>
This commit is contained in:
1 parent
216289d66c
commit
e980bb2e43
5 files changed
+268
-14
No files matched your search
@@ -25,6 +25,17 @@ impl ResizeTransaction {
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn deadline(self) -> Duration {
|
||||
self.started + DEADLINE
|
||||
}
|
||||
|
||||
// A replacement configure changes readiness, not the bound on an
|
||||
// uninterrupted wait. Clearing the transaction starts a fresh interaction.
|
||||
pub(crate) fn superseded_by(self, mut replacement: Self) -> Self {
|
||||
replacement.started = self.started;
|
||||
replacement
|
||||
}
|
||||
|
||||
pub(crate) fn serial(self) -> Serial {
|
||||
self.serial
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user