diff options
author | Erik Johnston <erik@matrix.org> | 2019-10-25 11:34:49 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-10-25 11:34:49 +0100 |
commit | 64c2cfda8a0ad9bc2aade76b10ce96c419922e82 (patch) | |
tree | 078e62c3d4955507a62a835b12eadf25d1148f0b /synapse | |
parent | Merge branch 'release-v1.5.0' of github.com:matrix-org/synapse into develop (diff) | |
parent | Merge pull request #6255 from matrix-org/erikj/stats_config (diff) | |
download | synapse-64c2cfda8a0ad9bc2aade76b10ce96c419922e82.tar.xz |
Merge branch 'release-v1.5.0' of github.com:matrix-org/synapse into develop
Diffstat (limited to 'synapse')
-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 index 466daf9202..26bc276692 100644 --- a/synapse/handlers/stats.py +++ b/synapse/handlers/stats.py @@ -45,6 +45,8 @@ class StatsHandler(StateDeltasHandler): self.is_mine_id = hs.is_mine_id self.stats_bucket_size = hs.config.stats_bucket_size + self.stats_enabled = hs.config.stats_enabled + # The current position in the current_state_delta stream self.pos = None @@ -61,7 +63,7 @@ class StatsHandler(StateDeltasHandler): def notify_new_event(self): """Called when there may be more deltas to process """ - if not self.hs.config.stats_enabled or self._is_processing: + if not self.stats_enabled or self._is_processing: return self._is_processing = True |