diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2019-01-17 12:09:31 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2019-01-17 12:09:31 +0000 |
commit | 53f8936b403b7d8683a233f06e6e26a6a035bdab (patch) | |
tree | 5d5e05626beab139c38fdd9ec995f82680275db0 /synapse | |
parent | Fix missing hs property (diff) | |
download | synapse-53f8936b403b7d8683a233f06e6e26a6a035bdab.tar.xz |
Simplify code slightly
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/http/matrixfederationclient.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py index f5b963dbd0..048bfa1870 100644 --- a/synapse/http/matrixfederationclient.py +++ b/synapse/http/matrixfederationclient.py @@ -69,11 +69,10 @@ class ProxyMatrixFederationEndpointFactory(object): def __init__(self, hs): self.reactor = hs.get_reactor() self.tls_client_options_factory = hs.tls_client_options_factory - self.federation_request_gateway_addr = hs.config.federation_request_gateway_addr def endpointForURI(self, uri): return matrix_federation_endpoint( - self.reactor, self.federation_request_gateway_addr, timeout=10, + self.reactor, self.hs.config.federation_request_gateway_addr, timeout=10, tls_client_options_factory=None ) |