aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake/content.rs
diff options
context:
space:
mode:
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;
}
}