Skip to main content

write_decision

Function write_decision 

Source
pub(crate) async fn write_decision(
    conn: &mut PgConnection,
    claim: &ClaimedRegistration,
    decision: Decision<'_>,
    audit: &ExchangeAudit,
) -> CreditRegistrationResult<Applied>
Expand description

Writes a decision made from the registry’s answer, or its refusal, to the claimed row, with the exchange behind it on the event. Lands only if the row is still in the claim’s expected state.