fix: schedule pending resizes with bounded deadlines (#42)

Co-authored-by: Samuel Onoja <[email protected]>
This commit is contained in:
Samuel OnojaandSamuel Onoja authored and GitHub committed 2026-10-14 13:28:10 +01:00
1 parent 216289d66c
commit e980bb2e43
5 files changed
+268 -14

No files matched your search

+11
View File
@@ -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
}