Skip to main content

refresh_mirror

Function refresh_mirror 

Source
fn refresh_mirror(
    id_store: &Store,
    agent_id: &str,
    name: &str,
    path: &Path,
    size_bytes: u64,
    modified_at: i64,
) -> Option<(u64, u64)>
Expand description

Mirrors a live file into db_agent_native_memory when it changed since it was last mirrored, and returns its (tokens, lines) counts when it read the file. Never upserts on a failed read.