Skip to main content

hold_in_flight

Function hold_in_flight 

Source
async fn hold_in_flight<'a>(
    conn: &mut PgConnection,
    claims: impl IntoIterator<Item = &'a ClaimedRegistration>,
) -> CreditRegistrationResult<()>
Expand description

Keeps the claimed rows from being claimed again, or imported, while their lookups are out. In the claim’s transaction, whose lock makes each move’s guard a confirmation of the state it read.