mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 09:31:35 +03:00
Simplify code slightly
This commit is contained in:
parent
439d71a8d1
commit
53f8936b40
1 changed files with 1 additions and 2 deletions
|
@ -69,11 +69,10 @@ class ProxyMatrixFederationEndpointFactory(object):
|
||||||
def __init__(self, hs):
|
def __init__(self, hs):
|
||||||
self.reactor = hs.get_reactor()
|
self.reactor = hs.get_reactor()
|
||||||
self.tls_client_options_factory = hs.tls_client_options_factory
|
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):
|
def endpointForURI(self, uri):
|
||||||
return matrix_federation_endpoint(
|
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
|
tls_client_options_factory=None
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue