diff options
author | reivilibre <oliverw@matrix.org> | 2022-05-10 11:08:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-10 11:08:45 +0100 |
commit | 699192fc1a1055a4bec2345bc80f120f28470c73 (patch) | |
tree | 60c884b99b94732c70871f30522a942ebfdd7750 /synapse/handlers/user_directory.py | |
parent | Changelog typo (diff) | |
download | synapse-699192fc1a1055a4bec2345bc80f120f28470c73.tar.xz |
Add the `update_user_directory_from_worker` configuration option (superseding `update_user_directory`) to allow a generic worker to be designated as the worker to update the user directory. (#12654)
Co-authored-by: Shay <hillerys@element.io>
Diffstat (limited to 'synapse/handlers/user_directory.py')
-rw-r--r-- | synapse/handlers/user_directory.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/user_directory.py b/synapse/handlers/user_directory.py index 048fd4bb82..74f7fdfe6c 100644 --- a/synapse/handlers/user_directory.py +++ b/synapse/handlers/user_directory.py @@ -60,7 +60,7 @@ class UserDirectoryHandler(StateDeltasHandler): self.clock = hs.get_clock() self.notifier = hs.get_notifier() self.is_mine_id = hs.is_mine_id - self.update_user_directory = hs.config.server.update_user_directory + self.update_user_directory = hs.config.worker.should_update_user_directory self.search_all_users = hs.config.userdirectory.user_directory_search_all_users self.spam_checker = hs.get_spam_checker() # The current position in the current_state_delta stream |