summary refs log tree commit diff
path: root/synapse/federation/transaction_queue.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-11-16 14:15:50 +0000
committerErik Johnston <erik@matrix.org>2016-11-16 14:47:52 +0000
commit847d5db1d1aa30fd6a8166e36fe04e6d94533521 (patch)
tree73fcd72f44b37cbfd34c2821eacc98d18013abf4 /synapse/federation/transaction_queue.py
parentMove logic into transaction_queue (diff)
downloadsynapse-847d5db1d1aa30fd6a8166e36fe04e6d94533521.tar.xz
Add transaction queue and transport layer to DI
Diffstat (limited to 'synapse/federation/transaction_queue.py')
-rw-r--r--synapse/federation/transaction_queue.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/transaction_queue.py b/synapse/federation/transaction_queue.py
index 69e01d6521..eb504055f8 100644
--- a/synapse/federation/transaction_queue.py
+++ b/synapse/federation/transaction_queue.py
@@ -44,13 +44,13 @@ class TransactionQueue(object):
     It batches pending PDUs into single transactions.
     """
 
-    def __init__(self, hs, transport_layer):
+    def __init__(self, hs):
         self.server_name = hs.hostname
 
         self.store = hs.get_datastore()
         self.transaction_actions = TransactionActions(self.store)
 
-        self.transport_layer = transport_layer
+        self.transport_layer = hs.get_federation_transport_client()
 
         self.clock = hs.get_clock()