mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 17:56:19 +03:00
Remove clean-up handler and replace with no-op as not currently needed.
needed. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
This commit is contained in:
parent
2da4b41c63
commit
0e6f700a13
1 changed files with 5 additions and 13 deletions
|
@ -73,8 +73,11 @@ class StatsStore(StateDeltasStore):
|
|||
self.register_background_update_handler(
|
||||
"populate_stats_process_users", self._populate_stats_process_users
|
||||
)
|
||||
self.register_background_update_handler(
|
||||
"populate_stats_cleanup", self._populate_stats_cleanup
|
||||
# we no longer need to perform clean-up, but we will give ourselves
|
||||
# the potential to reintroduce it in the future – so documentation
|
||||
# will still encourage the use of this no-op handler.
|
||||
self.register_noop_background_update(
|
||||
"populate_stats_cleanup"
|
||||
)
|
||||
|
||||
def quantise_stats_time(self, ts):
|
||||
|
@ -217,17 +220,6 @@ class StatsStore(StateDeltasStore):
|
|||
yield self._end_background_update("populate_stats_prepare")
|
||||
defer.returnValue(1)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def _populate_stats_cleanup(self, progress, batch_size):
|
||||
"""
|
||||
This is a background update which cleans up after statistics regeneration.
|
||||
"""
|
||||
# TODO is there really no clean-up to be done?
|
||||
|
||||
# TODO if not self.stats_enabled … cleanup.
|
||||
yield self._end_background_update("populate_stats_cleanup")
|
||||
defer.returnValue(1)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def _populate_stats_process_users(self, progress, batch_size):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue