make FederationHandler.send_invite async

This commit is contained in:
Richard van der Hoff 2020-02-03 22:28:11 +00:00
parent e81c093974
commit 5d17c31596
2 changed files with 4 additions and 6 deletions

View file

@ -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,