Skip to main content

resolve_import_batch

Function resolve_import_batch 

Source
async fn resolve_import_batch(
    requests: &[ImportAttainmentRequestItem],
    addresses: &[ItemAddress],
    now: DateTime<Utc>,
    runner: &mut FaultRunner<'_>,
    working: &mut WorkingSet,
) -> Result<Result<(Vec<ResponseItem>, Vec<Option<String>>), Answer>>
Expand description

Resolves an import batch and writes what survived its checks, returning each item’s answer and the submission it wrote. Err is the request-level answer that replaces the whole batch.