diff options
author | Olivier Wilkinson (reivilibre) <olivier@librepush.net> | 2019-08-13 16:19:36 +0100 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <olivier@librepush.net> | 2019-08-13 16:19:36 +0100 |
commit | de6b266817a69b699789f36c23446b8c6ee5cd50 (patch) | |
tree | 36d4a2ed89658d8ec9133b4ece3d601a6916e6b7 | |
parent | Remove clean-up handler and replace with no-op as not currently needed. (diff) | |
download | synapse-de6b266817a69b699789f36c23446b8c6ee5cd50.tar.xz |
Linting
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
-rw-r--r-- | synapse/storage/schema/delta/56/stats_separated2.py | 2 | ||||
-rw-r--r-- | synapse/storage/stats.py | 4 | ||||
-rw-r--r-- | tests/handlers/test_stats.py | 2 |
3 files changed, 4 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): """ diff --git a/tests/handlers/test_stats.py b/tests/handlers/test_stats.py index b4db7fed74..c4b7dfab73 100644 --- a/tests/handlers/test_stats.py +++ b/tests/handlers/test_stats.py @@ -14,12 +14,14 @@ # limitations under the License. from mock import Mock + from twisted.internet import defer from synapse import storage from synapse.api.constants import EventTypes, Membership from synapse.rest import admin from synapse.rest.client.v1 import login, room + from tests import unittest # The expected number of state events in a fresh public room. |