summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-13 16:19:36 +0100
committerOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-13 16:19:36 +0100
commitde6b266817a69b699789f36c23446b8c6ee5cd50 (patch)
tree36d4a2ed89658d8ec9133b4ece3d601a6916e6b7 /synapse/storage
parentRemove clean-up handler and replace with no-op as not currently needed. (diff)
downloadsynapse-de6b266817a69b699789f36c23446b8c6ee5cd50.tar.xz
Linting
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/schema/delta/56/stats_separated2.py2
-rw-r--r--synapse/storage/stats.py4
2 files changed, 2 insertions, 4 deletions
diff --git a/synapse/storage/schema/delta/56/stats_separated2.py b/synapse/storage/schema/delta/56/stats_separated2.py

index 07b1d982ed..c5e3208adb 100644 --- a/synapse/storage/schema/delta/56/stats_separated2.py +++ b/synapse/storage/schema/delta/56/stats_separated2.py
@@ -15,7 +15,7 @@ # This schema delta will be run after 'stats_separated1.sql' due to lexicographic # ordering. Note that it MUST be so. -from synapse.storage.engines import Sqlite3Engine, PostgresEngine +from synapse.storage.engines import PostgresEngine, Sqlite3Engine def _run_create_generic(stats_type, cursor, database_engine): diff --git a/synapse/storage/stats.py b/synapse/storage/stats.py
index 4c3db891c8..2f34535498 100644 --- a/synapse/storage/stats.py +++ b/synapse/storage/stats.py
@@ -76,9 +76,7 @@ class StatsStore(StateDeltasStore): # 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" - ) + self.register_noop_background_update("populate_stats_cleanup") def quantise_stats_time(self, ts): """