mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 12:59:22 -05:00
Fix syntax error
This commit is contained in:
parent
a60a2eaa02
commit
520ee9bd2c
@ -325,10 +325,17 @@ class FederationClient(FederationBase):
|
||||
state_event_ids = result["pdus"]
|
||||
auth_event_ids = result.get("auth_chain", [])
|
||||
|
||||
event_map, _failed_to_fetch = yield self.get_events(
|
||||
fetched_events, failed_to_fetch = yield self.get_events(
|
||||
[destination], room_id, set(state_event_ids + auth_event_ids)
|
||||
)
|
||||
|
||||
if failed_to_fetch:
|
||||
logger.warn("Failed to get %r", failed_to_fetch)
|
||||
|
||||
event_map = {
|
||||
ev.event_id: ev for ev in fetched_events
|
||||
}
|
||||
|
||||
pdus = [event_map[e_id] for e_id in state_event_ids]
|
||||
auth_chain = [event_map[e_id] for e_id in auth_event_ids]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user