Skip to main content

carry_into

Function carry_into 

Source
pub fn carry_into(
    own: &Path,
    lines: &[Line],
    now_ms: i64,
) -> Result<usize, String>
Expand description

A phone’s new lines added to its own log (own), under its lock, read again there: those not in it yet (by id), none past KEPT_DAYS (taken out already, it would come back), each padded. Two processes adding at once never write a line twice. Returns how many were written.