diff options
author | Erik Johnston <erik@matrix.org> | 2016-11-16 14:15:50 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-11-16 14:47:52 +0000 |
commit | 847d5db1d1aa30fd6a8166e36fe04e6d94533521 (patch) | |
tree | 73fcd72f44b37cbfd34c2821eacc98d18013abf4 /synapse/federation/__init__.py | |
parent | Move logic into transaction_queue (diff) | |
download | synapse-847d5db1d1aa30fd6a8166e36fe04e6d94533521.tar.xz |
Add transaction queue and transport layer to DI
Diffstat (limited to 'synapse/federation/__init__.py')
-rw-r--r-- | synapse/federation/__init__.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/synapse/federation/__init__.py b/synapse/federation/__init__.py index 979fdf2431..2e32d245ba 100644 --- a/synapse/federation/__init__.py +++ b/synapse/federation/__init__.py @@ -17,10 +17,9 @@ """ from .replication import ReplicationLayer -from .transport.client import TransportLayerClient -def initialize_http_replication(homeserver): - transport = TransportLayerClient(homeserver) +def initialize_http_replication(hs): + transport = hs.get_federation_transport_client() - return ReplicationLayer(homeserver, transport) + return ReplicationLayer(hs, transport) |