diff options
author | Erik Johnston <erik@matrix.org> | 2017-06-07 12:02:53 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-06-07 12:02:53 +0100 |
commit | ecdd2a36583ef822cbdf0d9aba4a3b2007713cb5 (patch) | |
tree | 1e61a53de74a4290b25f69daf269f6eeb977f869 /synapse/handlers | |
parent | Add some logging to user directory (diff) | |
download | synapse-ecdd2a36583ef822cbdf0d9aba4a3b2007713cb5.tar.xz |
Don't start user_directory handling on workers
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/user_directory.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/user_directory.py b/synapse/handlers/user_directory.py index 4e568de8c4..43eb1c78e9 100644 --- a/synapse/handlers/user_directory.py +++ b/synapse/handlers/user_directory.py @@ -46,6 +46,9 @@ class UserDirectoyHandler(object): self.state = hs.get_state_handler() self.server_name = hs.hostname self.clock = hs.get_clock() + self.notifier = hs.get_notifier() + + self.notifier.add_replication_callback(self.notify_new_event) # When start up for the first time we need to populate the user_directory. # This is a set of user_id's we've inserted already |