summary refs log tree commit diff
path: root/synapse/federation/__init__.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-27 17:36:31 +0000
committerErik Johnston <erik@matrix.org>2016-01-27 17:36:31 +0000
commit561088000306db787c1b924fa33e704665a795be (patch)
tree36d3f03438ceea8ddf22c461af408b8e7140c3d1 /synapse/federation/__init__.py
parentMerge pull request #533 from matrix-org/rav/hashtest_federation (diff)
parentDon't turn on profiling (diff)
downloadsynapse-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__.py9
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)