diff options
author | Richard van der Hoff <richard@matrix.org> | 2020-01-31 14:07:31 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2020-02-05 17:25:46 +0000 |
commit | f84700fba8cd9345d7a1a025462c7f8650f27386 (patch) | |
tree | a24835b157cb1724ac1967fdbdcdd027c67ad323 /synapse/handlers | |
parent | Merge pull request #6840 from matrix-org/rav/federation_client_async (diff) | |
download | synapse-f84700fba8cd9345d7a1a025462c7f8650f27386.tar.xz |
Pass room version object into `FederationClient.get_pdu`
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/federation.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 5728ea2ee7..5ca410e2b3 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -1110,7 +1110,7 @@ class FederationHandler(BaseHandler): Logs a warning if we can't find the given event. """ - room_version = await self.store.get_room_version_id(room_id) + room_version = await self.store.get_room_version(room_id) event_infos = [] @@ -1916,11 +1916,7 @@ class FederationHandler(BaseHandler): for e_id in missing_auth_events: m_ev = await self.federation_client.get_pdu( - [origin], - e_id, - room_version=room_version.identifier, - outlier=True, - timeout=10000, + [origin], e_id, room_version=room_version, outlier=True, timeout=10000, ) if m_ev and m_ev.event_id == e_id: event_map[e_id] = m_ev |