Skip to main content

update_state

Function update_state 

Source
pub fn update_state(
    params: &RepoParams,
    current: &RepoState,
    delta: &RepoState,
) -> Result<RepoState, UpdateError>
Expand description

Apply a delta (a partial update produced by a writer) to the current state. Used on the optimistic path. Performs the merge_state CRDT reconciliation plus the additional fast-forward / sequence-number guards described in the issue spec.