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

Method acknowledge_checkpoint

libatomic/src/daemon/journal_sink.rs:258–273  ·  view source on GitHub ↗
(
        &self,
        checkpoint: &JournalCheckpointAttempt,
        manifest_hash: Hash,
        completed_at: i64,
    )

Source from the content-addressed store, hash-verified

256 }
257
258 fn acknowledge_checkpoint(
259 &self,
260 checkpoint: &JournalCheckpointAttempt,
261 manifest_hash: Hash,
262 completed_at: i64,
263 ) -> Result<(), String> {
264 self.store()?
265 .acknowledge_provenance_checkpoint(
266 ProvenanceId::new(checkpoint.provenance_id),
267 checkpoint.attempt_generation,
268 manifest_hash,
269 completed_at,
270 )
271 .map_err(|error| error.to_string())?;
272 Ok(())
273 }
274
275 fn stop_turn(
276 &self,

Callers

nothing calls this directly

Calls 2

storeMethod · 0.45

Tested by

no test coverage detected