mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-30 14:33:54 +01:00
Err, gatherResults doesn't take a dict...
This commit is contained in:
parent
367382b575
commit
6e5ac4a28f
1 changed files with 7 additions and 4 deletions
|
@ -361,10 +361,13 @@ class FederationHandler(BaseHandler):
|
||||||
|
|
||||||
tried_domains = set(likely_domains)
|
tried_domains = set(likely_domains)
|
||||||
|
|
||||||
states = yield defer.gatherResults({
|
event_ids = list(extremities.keys())
|
||||||
e: self.state_handler.resolve_state_groups([e])[1]
|
|
||||||
for e in extremities.keys()
|
states = yield defer.gatherResults([
|
||||||
})
|
self.state_handler.resolve_state_groups([e])[1]
|
||||||
|
for e in event_ids
|
||||||
|
])
|
||||||
|
states = dict(zip(event_ids, states))
|
||||||
|
|
||||||
for e_id, _ in sorted_extremeties_tuple:
|
for e_id, _ in sorted_extremeties_tuple:
|
||||||
likely_domains = get_domains_from_state(states[e_id])[0]
|
likely_domains = get_domains_from_state(states[e_id])[0]
|
||||||
|
|
Loading…
Reference in a new issue