mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
make FederationClient.send_leave.send_request async
This commit is contained in:
parent
638001116d
commit
e88b90aaeb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user