Skip to main content

append_local

Function append_local 

Source
pub fn append_local(
    conn: &Connection,
    signer: &mut Signer<'_>,
    collection: &str,
    record: &str,
    body: Vec<u8>,
    tombstone: bool,
    now_ms: i64,
) -> Result<Record, SyncError>
Expand description

A change made here: the next sequence of this machine’s log, the next version of its clock, signed. The clock is first raised to the highest version the log holds, so a clock made fresh after a restart (or a wall clock that stepped back) still makes a version after the record’s current state, and the new write may point it.