mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-15 17:28:54 -05:00
Merge branch 'release-v1.5.0' of github.com:matrix-org/synapse into develop
This commit is contained in:
commit
64c2cfda8a
3 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue