Skip to main content

build_record

Function build_record 

Source
pub(crate) fn build_record(
    instance: &WanInstance,
    feed: &FleetFeed,
    snapshot: &FleetSnapshot,
    v: u32,
    published_at_ms: u64,
) -> Option<InstallPresence>
Expand description

The record for snapshot, as version v. An agent whose kind isn’t known is left out: the record requires one, and the feed doesn’t guess. An agent whose state isn’t known carries none, and one with no line no line.