Function replay
pub fn replay<I>(
events: I,
config: &ReplayConfig,
) -> Result<ReplayResult, ReplayError>Expand description
Replay events from an iterator through the reducer.
Implements JOURNAL_SPEC ยง9.2:
- First event MUST be
RunMetawithseq=1. - Schema version must be supported.
run_idmust be consistent withRunMeta.seqmust be contiguous.event_idmust be unique.- Checkpoint
run_idand state hash must match if checkpoint skip is used. - In strict mode, reducer errors halt replay.