Shuffle config

This commit is contained in:
Andrew Morgan 2019-04-02 13:45:58 +01:00
parent f38da61ae7
commit 3f1fe92a3b
2 changed files with 2 additions and 4 deletions

View file

@ -79,11 +79,10 @@ class MatrixFederationAgent(object):
def __init__(
self, reactor, tls_client_options_factory,
config, _well_known_tls_policy=None,
_well_known_tls_policy=None,
_srv_resolver=None,
_well_known_cache=well_known_cache,
):
self.config = config
self._reactor = reactor
self._clock = Clock(reactor)
@ -150,7 +149,7 @@ class MatrixFederationAgent(object):
tls_options = None
else:
tls_options = self._tls_client_options_factory.get_options(
res.tls_server_name.decode("ascii"), self.config,
res.tls_server_name.decode("ascii"),
)
# make sure that the Host header is set correctly

View file

@ -59,7 +59,6 @@ class MatrixFederationAgentTests(TestCase):
self.agent = MatrixFederationAgent(
reactor=self.reactor,
tls_client_options_factory=ClientTLSOptionsFactory(config),
config=config,
_well_known_tls_policy=TrustingTLSPolicyForHTTPS(),
_srv_resolver=self.mock_resolver,
_well_known_cache=self.well_known_cache,