mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-03-08 19:35:49 -05:00
make FederationHandler.on_event_auth async
This commit is contained in:
parent
863087d186
commit
94f7b4cd54
@ -1199,13 +1199,12 @@ class FederationHandler(BaseHandler):
|
|||||||
|
|
||||||
return pdu
|
return pdu
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
async def on_event_auth(self, event_id: str) -> List[EventBase]:
|
||||||
def on_event_auth(self, event_id):
|
event = await self.store.get_event(event_id)
|
||||||
event = yield self.store.get_event(event_id)
|
auth = await self.store.get_auth_chain(
|
||||||
auth = yield self.store.get_auth_chain(
|
|
||||||
[auth_id for auth_id in event.auth_event_ids()], include_given=True
|
[auth_id for auth_id in event.auth_event_ids()], include_given=True
|
||||||
)
|
)
|
||||||
return [e for e in auth]
|
return list(auth)
|
||||||
|
|
||||||
@log_function
|
@log_function
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user