perf: Don't try to fetch prevs we already fetched

graphs are hard
This commit is contained in:
timedout authored and Jade Ellis committed 2026-06-27 20:28:56 +01:00
1 parent 770343b1c0
commit 54e89daa46
1 file changed
+3
@@ -733,6 +733,9 @@ impl super::Service {
);
break;
}
if discovered_events.contains_key(&next_id) {
continue;
}
let pdu = match self
.fetch_event_vias(candidates.iter(), &next_id, room_version_rules)
.await