Skip to main content

judging_clock

Function judging_clock 

Source
pub fn judging_clock(
    now: Timestamp,
    latest_changed_at: Option<Timestamp>,
) -> Timestamp
Expand description

The clock a held stretch is judged by: this device’s (now), floored by the latest changed_at a feed drain saw on the server’s clock, so a restore is withheld whenever either clock says the server would refuse it. Only plan_delivery uses it: a retention sweep judges expiry by the server’s changed_at alone, since a device clock running ahead would purge early.