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
commitc1a6f3a0e79396089a38507316456e32d871c113 (patch)
treee3fe112bf0f1fe35ed306fa86a4b23cf4d27acb1 /src/remake/content.rs
parent7d9f3a0db5d0421a2e3fac54e920718f0fdd1f7c (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;
}
}