diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2019-03-11 21:13:35 +1100 |
---|---|---|
committer | Amber Brown <hawkowl@atleastfornow.net> | 2019-03-11 21:13:35 +1100 |
commit | 8da22e2b53614aa42776f9709a4265320e240765 (patch) | |
tree | 909791d4b21674cfdbf8cd49aec818569a0babba /synapse/server.py | |
parent | Merge remote-tracking branch 'origin/develop' into hawkowl/userdir-search (diff) | |
download | synapse-8da22e2b53614aa42776f9709a4265320e240765.tar.xz |
master startup
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py index 72835e8c86..c992bbaa5f 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -185,6 +185,10 @@ class HomeServer(object): 'registration_handler', ] + REQUIRED_ON_MASTER_STARTUP = [ + "user_directory_handler", + ] + # This is overridden in derived application classes # (such as synapse.app.homeserver.SynapseHomeServer) and gives the class to be # instantiated during setup() for future return by get_datastore() @@ -221,6 +225,10 @@ class HomeServer(object): conn.commit() logger.info("Finished setting up.") + def setup_master(self): + for i in self.REQUIRED_ON_MASTER_STARTUP: + getattr(self, "get_" + i)() + def get_reactor(self): """ Fetch the Twisted reactor in use by this HomeServer. |