summary refs log tree commit diff
path: root/synapse/module_api
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/module_api
parentRemove the federation replication stream and associated commands (diff)
downloadsynapse-github/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/module_api')
-rw-r--r--synapse/module_api/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py

index 90a40cd16b..94c25c87c5 100644 --- a/synapse/module_api/__init__.py +++ b/synapse/module_api/__init__.py
@@ -54,9 +54,7 @@ class ModuleApi: self._state = hs.get_state_handler() self._presence_router = hs.get_presence_router() - self._federation = None - if hs.should_send_federation(): - self._federation = self._hs.get_federation_sender() + self._federation = self._hs.get_federation_sender() # We expose these as properties below in order to attach a helpful docstring. self._http_client = hs.get_simple_http_client() # type: SimpleHttpClient