pub fn remaining_tiers<H: BuildHasher>(
asset: &StagedAsset,
held: &HashSet<String, H>,
) -> StagedAssetExpand description
Re-derive the outstanding staged work from server truth: keep only the blobs the server does not already hold, in ladder order.
This is the whole resume story (transfer upload doc: “Resume needs no new client
state”). No durable local queue is trusted — library.sqlite’s work queue is a
rebuildable cache. Kill the client mid-ladder, pull the feed, pass held from
held_from_feed, and this rebuilds exactly the missing tiers. A tier whose
blob is already held is skipped; a tier still in flight is re-driven and resumes
through the UploadClient’s create-dedup / HEAD offset (no bytes re-sent).