Skip to main content

push_bundle

Function push_bundle 

Source
pub async fn push_bundle<H: BuildHasher + Sync>(
    client: &UploadClient,
    scheduler: &StagedScheduler,
    bundle: &UploadBundle,
    held: &HashSet<String, H>,
    force: bool,
) -> Result<AssetPushReport, PushError>
Expand description

Push one UploadBundle through client, in the order scheduler permits.

held is the set of blob content addresses the server already holds (from held_from_feed over a fresh feed pull); those blobs are skipped without a request. force ignores held and re-drives every planned blob — the server still answers duplicate_blob for anything it holds, which resolves as a merge.

Every blob’s transfer steps are published to client’s events handle, tagged with the blob’s content address.