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

Method prepare_checkpoint

libatomic/src/daemon/journal_sink.rs:201–220  ·  view source on GitHub ↗
(
        &self,
        reservation: JournalTurnReservation,
        source: JournalCheckpointSource,
        now: i64,
    )

Source from the content-addressed store, hash-verified

199 }
200
201 fn prepare_checkpoint(
202 &self,
203 reservation: JournalTurnReservation,
204 source: JournalCheckpointSource,
205 now: i64,
206 ) -> Result<JournalCheckpointAttempt, String> {
207 let attempt = self
208 .store()?
209 .prepare_provenance_checkpoint(
210 ProvenanceId::new(reservation.provenance_id),
211 reservation.generation,
212 to_store_checkpoint_source(source),
213 now,
214 )
215 .map_err(|error| error.to_string())?;
216 Ok(to_journal_checkpoint_attempt(
217 reservation.provenance_id,
218 attempt,
219 ))
220 }
221
222 fn load_frozen_envelopes(
223 &self,

Callers

nothing calls this directly

Calls 4

storeMethod · 0.45

Tested by

no test coverage detected