Skip to content
Snippets Groups Projects
Commit e88b90aa authored by Richard van der Hoff's avatar Richard van der Hoff
Browse files

make FederationClient.send_leave.send_request async

parent 63800111
No related branches found
No related tags found
No related merge requests found
...@@ -762,12 +762,9 @@ class FederationClient(FederationBase): ...@@ -762,12 +762,9 @@ class FederationClient(FederationBase):
RuntimeError if no servers were reachable. RuntimeError if no servers were reachable.
""" """
@defer.inlineCallbacks async def send_request(destination: str) -> None:
def send_request(destination): content = await self._do_send_leave(destination, pdu)
content = yield self._do_send_leave(destination, pdu)
logger.debug("Got content: %s", content) logger.debug("Got content: %s", content)
return None
return await self._try_destination_list( return await self._try_destination_list(
"send_leave", destinations, send_request "send_leave", destinations, send_request
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment