diff options
author | Erik Johnston <erik@matrix.org> | 2016-01-27 17:36:31 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-01-27 17:36:31 +0000 |
commit | 561088000306db787c1b924fa33e704665a795be (patch) | |
tree | 36d3f03438ceea8ddf22c461af408b8e7140c3d1 /synapse/federation/__init__.py | |
parent | Merge pull request #533 from matrix-org/rav/hashtest_federation (diff) | |
parent | Don't turn on profiling (diff) | |
download | synapse-561088000306db787c1b924fa33e704665a795be.tar.xz |
Merge pull request #530 from matrix-org/erikj/server_refactor
Remove redundant BaseHomeServer
Diffstat (limited to 'synapse/federation/__init__.py')
-rw-r--r-- | synapse/federation/__init__.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/synapse/federation/__init__.py b/synapse/federation/__init__.py index 0bfb79d09f..979fdf2431 100644 --- a/synapse/federation/__init__.py +++ b/synapse/federation/__init__.py @@ -17,15 +17,10 @@ """ from .replication import ReplicationLayer -from .transport import TransportLayer +from .transport.client import TransportLayerClient def initialize_http_replication(homeserver): - transport = TransportLayer( - homeserver, - homeserver.hostname, - server=homeserver.get_resource_for_federation(), - client=homeserver.get_http_client() - ) + transport = TransportLayerClient(homeserver) return ReplicationLayer(homeserver, transport) |