diff options
author | Erik Johnston <erik@matrix.org> | 2019-10-25 10:28:36 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-10-25 10:28:36 +0100 |
commit | f666d6f5d71b34762afc6c3d987496633ff2182c (patch) | |
tree | 2428ddd175813a9054b9243cec806eea85fceb8e /synapse/handlers | |
parent | Merge pull request #6248 from matrix-org/erikj/move_schema_files (diff) | |
download | synapse-f666d6f5d71b34762afc6c3d987496633ff2182c.tar.xz |
Remove repeated calls to config.stats_enabled.
Turns out that fetching variables from the config object is expensive, so doing it once at startup avoids unnecessary work.
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/stats.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/stats.py b/synapse/handlers/stats.py |