fix: don't ignore join_next() errors in background_fetch_any()

join_next() failing means something went really wrong, e.g. panic inside a task.
We also don't cancel the tasks other than by dropping JoinSet,
so join_next() should never return an error.
This commit is contained in:
link2xt
2026-09-13 23:25:39 +00:00
parent a8e1110bcd
commit 8acdda4897

View File

@@ -312,7 +312,7 @@ impl SchedulerState {
} }
while let Some(fetched) = set.join_next().await { while let Some(fetched) = set.join_next().await {
if let Ok(true) = fetched { if fetched.context("background_fetch_any: Failed to join a task")? {
break; break;
} }
} }