mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 12:16:54 +00:00
fix: Make fetch_state_ids_from_backfill_servers candidate-free safe
This commit is contained in:
1 parent
f0e4f53f03
commit
3ff2797b11
1 file changed
+5
@@ -255,6 +255,11 @@ impl super::Service {
|
||||
.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(
|
||||
|
||||
Reference in new issue
Block a user