Skip to main content

sync

Function sync 

Source
pub fn sync(
    old: Option<Record>,
    policy: &Policy,
    file_sha256: &str,
    now_ms: i64,
) -> (Record, Vec<Event>)
Expand description

Compare the grants file policy (with the hash of its text) with what was recorded, and say what changed. old is the record read from disk: none on the first run, which records the file as the baseline.