refactor(managed): remove legacy runtime #52

Merged
Lochnair merged 5 commits from refactor/managed-frontend-cutover into main 2026-08-09 15:05:17 +00:00
2 changed files with 4 additions and 0 deletions
Showing only changes of commit 33fe01f252 - Show all commits

No files matched your search

@@ -79,6 +79,7 @@ impl ProbeSchedule {
Ok(self.finish_commit(scheduled_at, next_send_at))
}
#[cfg(any(feature = "tokio", test))]
pub(crate) fn preflight_managed_commit(
&self,
scheduled_at: Instant,
@@ -122,6 +123,7 @@ fn next_probe_deadline(
.ok_or(ClientError::DurationOverflow)
}
#[cfg(any(feature = "tokio", test))]
pub(crate) fn advance_cadence(
deadline: Instant,
interval: Duration,
@@ -161,6 +163,7 @@ pub(crate) fn advance_cadence(
Ok((scheduled_at, next_at, elapsed_slots))
}
#[cfg(any(feature = "tokio", test))]
fn duration_from_nanos(nanos: u128) -> Result<Duration, ClientError> {
const NANOS_PER_SECOND: u128 = 1_000_000_000;
let seconds =
@@ -488,6 +488,7 @@ impl SessionMachine {
)
}
#[cfg(any(feature = "tokio", test))]
pub(crate) fn packets_sent(&self) -> u64 {
match &self.state {
MachineState::Open(session) => session.packets_sent,