Skip to main content

compensation_joins_its_group

Function compensation_joins_its_group 

Source
pub async fn compensation_joins_its_group<F>(
    open: impl AsyncFn() -> F,
) -> Result<RuleOutcome, Violation>
where F: IngestFixture, F::Store: WriteGroupStore,
Expand description

SY-39, with SY-2: a compensation is one write group with the ingested group it answers, after it.

One ingest of [losing] answered by [reversal]: one group holding both, the losing event first.

§Rejects

A store that records the compensation as a group of its own, which a relay would forward in a separate atomic unit (SY-2).

§Errors

A Violation of SY-39 if the store refuses the ingest or a read, or reads back other groups.