diff options
author | Richard van der Hoff <richard@matrix.org> | 2020-02-03 21:08:51 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2020-02-03 22:28:45 +0000 |
commit | e88b90aaebd19822e310b708696036dc0b1f17f6 (patch) | |
tree | 2725f50a99a33a60a449d4767532b24c59a1344a /synapse | |
parent | make FederationClient._do_send_join async (diff) | |
download | synapse-e88b90aaebd19822e310b708696036dc0b1f17f6.tar.xz |
make FederationClient.send_leave.send_request async
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/federation/federation_client.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py index b4609b78cb..f98c36039d 100644 --- a/synapse/federation/federation_client.py +++ b/synapse/federation/federation_client.py @@ -762,12 +762,9 @@ class FederationClient(FederationBase): RuntimeError if no servers were reachable. """ - @defer.inlineCallbacks - def send_request(destination): - content = yield self._do_send_leave(destination, pdu) - + async def send_request(destination: str) -> None: + content = await self._do_send_leave(destination, pdu) logger.debug("Got content: %s", content) - return None return await self._try_destination_list( "send_leave", destinations, send_request |