Expose the existing helper sync lease deadline without changing readiness
Rust development slice / linux (push) Failing after 7s

This commit is contained in:
2026-11-15 00:01:16 +01:00
parent 07d61183bf
commit d77279fb84
2 changed files with 7 additions and 0 deletions
@@ -204,6 +204,10 @@ impl<V: Ed25519Verifier> HelperSync<V> {
self.lease = None;
self.capture = None;
}
/// Read-only bound of the existing confirmed lease; creates no readiness.
pub fn validity_deadline(&self) -> Option<DateTime<Utc>> {
self.lease.as_ref().map(|lease| lease.until)
}
pub fn active_generation(&self) -> Option<u64> {
self.lease.as_ref().map(|lease| lease.generation)
}