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

Method load_frozen_envelopes

libatomic/src/daemon/journal_sink.rs:222–233  ·  view source on GitHub ↗
(
        &self,
        checkpoint: &JournalCheckpointAttempt,
    )

Source from the content-addressed store, hash-verified

220 }
221
222 fn load_frozen_envelopes(
223 &self,
224 checkpoint: &JournalCheckpointAttempt,
225 ) -> Result<Vec<Vec<u8>>, String> {
226 // The daemon is in-process with the store: no frame budgets, no
227 // paging — one direct read.
228 let stored = self
229 .store()?
230 .load_frozen_provenance_envelopes(ProvenanceId::new(checkpoint.provenance_id))
231 .map_err(|error| error.to_string())?;
232 Ok(stored.into_iter().map(|entry| entry.envelope).collect())
233 }
234
235 fn bind_checkpoint_hash(
236 &self,

Callers

nothing calls this directly

Calls 4

storeMethod · 0.45
collectMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected