MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / from

Method from

crates/commitlog/src/commitlog.rs:503–506  ·  view source on GitHub ↗
(meta: CommittedMeta)

Source from the content-addressed store, hash-verified

501
502impl From<CommittedMeta> for segment::Metadata {
503 fn from(meta: CommittedMeta) -> Self {
504 let (CommittedMeta::Prefix { metadata, .. } | CommittedMeta::Complete { metadata }) = meta;
505 metadata
506 }
507}
508
509/// Extract the most recently written [CommittedMeta] from the commitlog

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected