MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / acknowledge_checkpoint

Function acknowledge_checkpoint

libatomic/src/daemon/provenance_core.rs:337–348  ·  view source on GitHub ↗

Acknowledge publication and complete the turn (caller-supplied time).

(
    store: &RedbChangeStore,
    id: ProvenanceId,
    expected_generation: u64,
    manifest_hash: atomic_core::types::Hash,
    completed_at: i64,
)

Source from the content-addressed store, hash-verified

335
336/// Acknowledge publication and complete the turn (caller-supplied time).
337pub fn acknowledge_checkpoint(
338 store: &RedbChangeStore,
339 id: ProvenanceId,
340 expected_generation: u64,
341 manifest_hash: atomic_core::types::Hash,
342 completed_at: i64,
343) -> Result<(), JournalError> {
344 store
345 .acknowledge_provenance_checkpoint(id, expected_generation, manifest_hash, completed_at)
346 .map_err(|error| JournalError::store(ErrorCode::ProvenanceCheckpoint, error))?;
347 Ok(())
348}
349
350fn lifecycle_lookup(
351 store: &RedbChangeStore,

Callers 1

Calls 2

storeFunction · 0.85

Tested by

no test coverage detected