diff options
author | Richard van der Hoff <richard@matrix.org> | 2020-02-03 16:06:46 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2020-02-03 16:06:46 +0000 |
commit | 94f7b4cd54612f9f1a67b3090f7b249ac20a0c76 (patch) | |
tree | 646b28c7d47e19b33e6f6bf1cbe5f33f3b49f9a7 /synapse | |
parent | make FederationHandler.on_exchange_third_party_invite_request async (diff) | |
download | synapse-94f7b4cd54612f9f1a67b3090f7b249ac20a0c76.tar.xz |
make FederationHandler.on_event_auth async
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/federation.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 1eafc1bf1a..4e9f240e14 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -1199,13 +1199,12 @@ class FederationHandler(BaseHandler): return pdu - @defer.inlineCallbacks - def on_event_auth(self, event_id): - event = yield self.store.get_event(event_id) - auth = yield self.store.get_auth_chain( + async def on_event_auth(self, event_id: str) -> List[EventBase]: + event = await self.store.get_event(event_id) + auth = await self.store.get_auth_chain( [auth_id for auth_id in event.auth_event_ids()], include_given=True ) - return [e for e in auth] + return list(auth) @log_function @defer.inlineCallbacks |