0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-30 03:14:10 +01:00

make FederationClient.send_leave.send_request async

This commit is contained in:
Richard van der Hoff 2020-02-03 21:08:51 +00:00
parent 638001116d
commit e88b90aaeb

View file

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