make FederationClient.send_join.send_request async
This commit is contained in:
parent
ad09ee9262
commit
3960527c2e
|
@ -553,9 +553,8 @@ class FederationClient(FederationBase):
|
||||||
"room appears to have unsupported version %s" % (room_version,)
|
"room appears to have unsupported version %s" % (room_version,)
|
||||||
)
|
)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
async def send_request(destination) -> Dict[str, Any]:
|
||||||
def send_request(destination):
|
content = await self._do_send_join(destination, pdu)
|
||||||
content = yield self._do_send_join(destination, pdu)
|
|
||||||
|
|
||||||
logger.debug("Got content: %s", content)
|
logger.debug("Got content: %s", content)
|
||||||
|
|
||||||
|
@ -584,7 +583,7 @@ class FederationClient(FederationBase):
|
||||||
# invalid, and it would fail auth checks anyway.
|
# invalid, and it would fail auth checks anyway.
|
||||||
raise SynapseError(400, "No create event in state")
|
raise SynapseError(400, "No create event in state")
|
||||||
|
|
||||||
valid_pdus = yield self._check_sigs_and_hash_and_fetch(
|
valid_pdus = await self._check_sigs_and_hash_and_fetch(
|
||||||
destination,
|
destination,
|
||||||
list(pdus.values()),
|
list(pdus.values()),
|
||||||
outlier=True,
|
outlier=True,
|
||||||
|
|
Loading…
Reference in New Issue