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

Method from

crates/commitlog/src/commit.rs:248–263  ·  view source on GitHub ↗
(
        StoredCommit {
            min_tx_offset,
            epoch,
            n,
            records,
            checksum: _,
        }: StoredCommit,
    )

Source from the content-addressed store, hash-verified

246
247impl From<StoredCommit> for Commit {
248 fn from(
249 StoredCommit {
250 min_tx_offset,
251 epoch,
252 n,
253 records,
254 checksum: _,
255 }: StoredCommit,
256 ) -> Self {
257 Self {
258 min_tx_offset,
259 epoch,
260 n,
261 records,
262 }
263 }
264}
265
266/// A [`Commit`] as stored on disk.

Callers

nothing calls this directly

Calls 2

tx_rangeMethod · 0.80
encoded_lenMethod · 0.80

Tested by

no test coverage detected