just a little

This commit is contained in:
cy 2025-04-14 13:27:00 -04:00
parent 2f9cc77b42
commit f304dae207
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts

View file

@ -160,11 +160,10 @@ impl Push {
self.bucket.clone(), self.bucket.clone(),
)?; )?;
let fut = tokio::spawn({ uploads.push(tokio::spawn(async move {
let _permit = permits.acquire().await.unwrap(); let _permit = permits.acquire().await.unwrap();
async move { uploader.upload().await } uploader.upload().await
}); }));
uploads.push(fut);
} else { } else {
join_all(uploads) join_all(uploads)
.await .await