mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:56:06 -04:00
Use direct references for some configuration variables (#10798)
Instead of proxying through the magic getter of the RootConfig object. This should be more performant (and is more explicit).
This commit is contained in:
parent
9f111075e8
commit
01c88a09cd
66 changed files with 152 additions and 133 deletions
|
@ -38,7 +38,7 @@ def run_upgrade(cur, database_engine, config, *args, **kwargs):
|
|||
logger.warning("Could not get app_service_config_files from config")
|
||||
pass
|
||||
|
||||
appservices = load_appservices(config.server_name, config_files)
|
||||
appservices = load_appservices(config.server.server_name, config_files)
|
||||
|
||||
owned = {}
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ def run_upgrade(cur, database_engine, config, *args, **kwargs):
|
|||
INNER JOIN room_memberships AS r USING (event_id)
|
||||
WHERE type = 'm.room.member' AND state_key LIKE ?
|
||||
"""
|
||||
cur.execute(sql, ("%:" + config.server_name,))
|
||||
cur.execute(sql, ("%:" + config.server.server_name,))
|
||||
|
||||
cur.execute(
|
||||
"CREATE UNIQUE INDEX local_current_membership_idx ON local_current_membership(user_id, room_id)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue