diff options
author | Richard van der Hoff <richard@matrix.org> | 2020-02-03 22:28:11 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2020-02-03 22:28:11 +0000 |
commit | 5d17c3159618b6e75bb58ba68a77a73572a85688 (patch) | |
tree | b04d313626c07b1cd964df7a0ecb6b61c734c775 /synapse/handlers/federation.py | |
parent | make FederationHandler.on_get_missing_events async (diff) | |
download | synapse-5d17c3159618b6e75bb58ba68a77a73572a85688.tar.xz |
make FederationHandler.send_invite async
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r-- | synapse/handlers/federation.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index ea2f6a91d7..5728ea2ee7 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -1184,13 +1184,12 @@ class FederationHandler(BaseHandler): ) raise SynapseError(http_client.BAD_REQUEST, "Too many auth_events") - @defer.inlineCallbacks - def send_invite(self, target_host, event): + async def send_invite(self, target_host, event): """ Sends the invite to the remote server for signing. Invites must be signed by the invitee's server before distribution. """ - pdu = yield self.federation_client.send_invite( + pdu = await self.federation_client.send_invite( destination=target_host, room_id=event.room_id, event_id=event.event_id, |