Skip to main content

push_pending

Function push_pending 

Source
pub fn push_pending(
    api: &dyn PlaceApi,
    replica: &Replica,
    place: &str,
    purge_acks: &[Value],
) -> Result<PushReport, CloudError>
Expand description

Push the replica’s pending own events in batches of push::MAX_BATCH, with the signed purge acks riding on the first request (one is sent even without events). Failed events leave the pending queue; everything else stays pending until the tail delivers it. report.acked is true when the acks reached the place.