mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-05 20:25:03 -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
|
@ -815,7 +815,7 @@ class RoomWorkerStore(SQLBaseStore):
|
|||
If it is `None` media will be removed from quarantine
|
||||
"""
|
||||
logger.info("Quarantining media: %s/%s", server_name, media_id)
|
||||
is_local = server_name == self.config.server_name
|
||||
is_local = server_name == self.config.server.server_name
|
||||
|
||||
def _quarantine_media_by_id_txn(txn):
|
||||
local_mxcs = [media_id] if is_local else []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue