summary refs log tree commit diff
path: root/synapse/handlers/devicemessage.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-04-15 14:13:45 +0100
committerErik Johnston <erik@matrix.org>2021-04-15 14:13:45 +0100
commit68b9eb694f0896f11f0699a7e01bd7fb9210dba4 (patch)
tree3e05430849bf3bb4fb9bb4e7843da6a7ac63c7b5 /synapse/handlers/devicemessage.py
parentRemove the federation replication stream and associated commands (diff)
downloadsynapse-erikj/remove_send_queue.tar.xz
Tidy up hs.get_federation_sender() calls github/erikj/remove_send_queue erikj/remove_send_queue
Diffstat (limited to 'synapse/handlers/devicemessage.py')
-rw-r--r--synapse/handlers/devicemessage.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/handlers/devicemessage.py b/synapse/handlers/devicemessage.py

index c5d631de07..638c9f8b5f 100644 --- a/synapse/handlers/devicemessage.py +++ b/synapse/handlers/devicemessage.py
@@ -51,9 +51,7 @@ class DeviceMessageHandler: # same instance. Other federation sender instances will get notified by # `synapse.app.generic_worker.FederationSenderHandler` when it sees it # in the to-device replication stream. - self.federation_sender = None - if hs.should_send_federation(): - self.federation_sender = hs.get_federation_sender() + self.federation_sender = hs.get_federation_sender() # If we can handle the to device EDUs we do so, otherwise we route them # to the appropriate worker.