Keep preparation size available after moving verification binding

This commit is contained in:
archipelago
2026-10-07 00:50:53 -04:00
parent fba3273c67
commit 687ec881ca
+2 -1
View File
@@ -180,6 +180,7 @@ impl Manager {
touched: Instant::now(), touched: Instant::now(),
}); });
jobs.insert(key, job.clone()); jobs.insert(key, job.clone());
let total_bytes = binding.size;
tokio::task::spawn_blocking(move || { tokio::task::spawn_blocking(move || {
let _permit = permit; let _permit = permit;
let result = std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| work(progress))) let result = std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| work(progress)))
@@ -202,7 +203,7 @@ impl Manager {
}); });
Ok(Status::Preparing { Ok(Status::Preparing {
completed_bytes: 0, completed_bytes: 0,
total_bytes: binding.size, total_bytes,
}) })
} }
/// Explicit retry clears only a failed preparation, never a running job or /// Explicit retry clears only a failed preparation, never a running job or