Skip to main content

assert_fresh

Function assert_fresh 

Source
pub fn assert_fresh(
    now: DateTime<Utc>,
    max_age: Duration,
) -> Result<(), FreshnessError>
Expand description

Assert the active bundle is no older than max_age relative to now.

Freshness is based on status.provenance.fetched_at() from the archive provenance record.