pub fn batches<'a>(manifests: &[&'a HeldManifest]) -> Vec<Vec<&'a HeldManifest>>Expand description
Cut manifests into requests of at most MAX_BATCH_MANIFESTS manifests and
MAX_BATCH_BYTES bytes, in order.
A single manifest larger than the byte budget rides alone: the server answers it (it is far
past any real manifest, so the answer is malformed), which is better than never sending it.