fix: Make fetch_state_ids_from_backfill_servers candidate-free safe

This commit is contained in:
timedout
2026-06-20 17:08:00 +01:00
parent 486dcd208c
commit 31737e127e
@@ -255,6 +255,11 @@ async fn fetch_state_ids_from_backfill_servers(
.timeline
.candidate_backfill_servers(&room_id)
.await;
if candidates.is_empty() {
return Err!(Request(NotFound(
"Cannot ask any other servers for the state at this event"
)));
}
debug!(%room_id, ?candidates, "Asking backfill servers for state_ids");
let futures = candidates.iter().map(|server_name| {
Box::pin(