summary refs log tree commit diff
path: root/synapse/handlers/typing.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-11-16 14:28:03 +0000
committerErik Johnston <erik@matrix.org>2016-11-16 14:47:52 +0000
commit59ef517e6bc63b2613f18c9b85356a0f973f5698 (patch)
tree277cafe08a8b1dff46acbee2273c59a859386a53 /synapse/handlers/typing.py
parentAdd transaction queue and transport layer to DI (diff)
downloadsynapse-59ef517e6bc63b2613f18c9b85356a0f973f5698.tar.xz
Use new federation_sender DI
Diffstat (limited to 'synapse/handlers/typing.py')
-rw-r--r--synapse/handlers/typing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/typing.py b/synapse/handlers/typing.py
index 27ee715ff0..0eea7f8f9c 100644
--- a/synapse/handlers/typing.py
+++ b/synapse/handlers/typing.py
@@ -55,9 +55,9 @@ class TypingHandler(object):
         self.clock = hs.get_clock()
         self.wheel_timer = WheelTimer(bucket_size=5000)
 
-        self.federation = hs.get_replication_layer()
+        self.federation = hs.get_federation_sender()
 
-        self.federation.register_edu_handler("m.typing", self._recv_edu)
+        hs.get_replication_layer().register_edu_handler("m.typing", self._recv_edu)
 
         hs.get_distributor().observe("user_left_room", self.user_left_room)