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

Function transactions_from_internal

crates/commitlog/src/commitlog.rs:600–616  ·  view source on GitHub ↗
(
    commits: CommitsWithVersion<R>,
    offset: u64,
    de: &'a D,
)

Source from the content-addressed store, hash-verified

598}
599
600fn transactions_from_internal<'a, R, D, T>(
601 commits: CommitsWithVersion<R>,
602 offset: u64,
603 de: &'a D,
604) -> impl Iterator<Item = Result<Transaction<T>, D::Error>> + 'a
605where
606 R: Repo + 'a,
607 D: Decoder<Record = T>,
608 D::Error: From<error::Traversal>,
609 T: 'a,
610{
611 commits
612 .map(|x| x.map_err(D::Error::from))
613 .map_ok(move |(version, commit)| commit.into_transactions(version, offset, de))
614 .flatten_ok()
615 .map(|x| x.and_then(|y| y))
616}
617
618fn fold_transactions_internal<R, D>(
619 mut commits: CommitsWithVersion<R>,

Callers 2

transactions_fromMethod · 0.85
transactions_fromFunction · 0.85

Calls 2

into_transactionsMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…