Skip to main content

track_batch_acknowledgements

Function track_batch_acknowledgements 

Source
pub fn track_batch_acknowledgements(
    event_ids: Vec<String>,
    acknowledgements: Vec<BatchAcknowledgement>,
) -> Result<BatchProgress, SoftchatError>
Expand description

Project unordered and repeated OK results onto one submitted batch.

Identical duplicate terminal results are idempotent. A conflicting duplicate, unknown event ID, duplicate submitted ID, or malformed value is a protocol error.

ยงErrors

Returns SoftchatError::InvalidRelayBatch for any ambiguous result set.