MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / record_applied

Method record_applied

nodedb/src/control/array_sync/apply.rs:65–70  ·  view source on GitHub ↗

Record that an op has been applied by appending it to the durable op-log. Called by `OriginArrayInbound` after a successful Data Plane dispatch so future `already_seen` calls return `true` for the same `(array, hlc)`.

(
        &self,
        op: &nodedb_array::sync::op::ArrayOp,
    )

Source from the content-addressed store, hash-verified

63 /// Called by `OriginArrayInbound` after a successful Data Plane dispatch so
64 /// future `already_seen` calls return `true` for the same `(array, hlc)`.
65 pub fn record_applied(
66 &self,
67 op: &nodedb_array::sync::op::ArrayOp,
68 ) -> nodedb_array::error::ArrayResult<()> {
69 self.op_log.append(op)
70 }
71}

Callers 2

apply_op_directMethod · 0.80
apply_array_opFunction · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected