summary refs log tree commit diff
path: root/synapse/http/federation/matrix_federation_agent.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-09-01 09:15:22 -0400
committerGitHub <noreply@github.com>2020-09-01 09:15:22 -0400
commit5bf8e5f55b49f9e46a7fe7d7872e6b16d38bffd3 (patch)
tree3874f5dd751f7626b2b75b4280b0f93db0475072 /synapse/http/federation/matrix_federation_agent.py
parentConvert additional databases to async/await part 2 (#8200) (diff)
downloadsynapse-5bf8e5f55b49f9e46a7fe7d7872e6b16d38bffd3.tar.xz
Convert the well known resolver to async (#8214)
Diffstat (limited to 'synapse/http/federation/matrix_federation_agent.py')
-rw-r--r--synapse/http/federation/matrix_federation_agent.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/http/federation/matrix_federation_agent.py b/synapse/http/federation/matrix_federation_agent.py
index 369bf9c2fc..782d39d4ca 100644
--- a/synapse/http/federation/matrix_federation_agent.py
+++ b/synapse/http/federation/matrix_federation_agent.py
@@ -134,8 +134,8 @@ class MatrixFederationAgent(object):
             and not _is_ip_literal(parsed_uri.hostname)
             and not parsed_uri.port
         ):
-            well_known_result = yield self._well_known_resolver.get_well_known(
-                parsed_uri.hostname
+            well_known_result = yield defer.ensureDeferred(
+                self._well_known_resolver.get_well_known(parsed_uri.hostname)
             )
             delegated_server = well_known_result.delegated_server