diff options
author | Erik Johnston <erik@matrix.org> | 2016-08-03 15:03:15 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-08-03 15:03:15 +0100 |
commit | 520ee9bd2c91a75eb1dc7ed923016967856c6bdf (patch) | |
tree | 7c2a19b80b0f5aa57e3c3faaf94be2e9ba509059 /synapse/federation/federation_client.py | |
parent | Comment (diff) | |
download | synapse-520ee9bd2c91a75eb1dc7ed923016967856c6bdf.tar.xz |
Fix syntax error
Diffstat (limited to 'synapse/federation/federation_client.py')
-rw-r--r-- | synapse/federation/federation_client.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py index 0491f1c3fe..6c626cf12c 100644 --- a/synapse/federation/federation_client.py +++ b/synapse/federation/federation_client.py @@ -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] |