aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake/content.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-01 20:40:52 +0100
committertv <tv@krebsco.de>2026-11-01 20:40:52 +0100
commit6340cb9f2cac899212c30192ed67d99d7ff337ac (patch)
tree0503071353d034ab33f3ffc3e4f18daf2270b31b /src/remake/content.rs
parentae2a573e2753e1e7a11b94e2a721cb4d638079b3 (diff)
remake: download wakes on end instead of ticker
Diffstat (limited to 'src/remake/content.rs')
-rw-r--r--src/remake/content.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/remake/content.rs b/src/remake/content.rs
index d036b87..467d083 100644
--- a/src/remake/content.rs
+++ b/src/remake/content.rs
@@ -11,7 +11,6 @@
use std::collections::HashSet;
use std::sync::Arc;
-use std::time::Duration;
use tracing::{info, warn};
@@ -59,9 +58,7 @@ pub(super) async fn ensure<H: Host>(
.ok_or_else(|| format!("couldn't download content {}", reference.blake3));
}
// Someone else is downloading it.
- while host.remake().content_fetch_running(&hash) {
- tokio::time::sleep(Duration::from_millis(500)).await;
- }
+ host.remake().content_fetch_ended(&hash).await;
}
}