From ca98241e18082bf6ecd7fb11953053dba5bce9ca Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Mon, 27 Apr 2020 20:10:15 +0100 Subject: [PATCH] lint --- synapse/config/cache.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/synapse/config/cache.py b/synapse/config/cache.py index 8278a6e1aa..583fcaaf65 100644 --- a/synapse/config/cache.py +++ b/synapse/config/cache.py @@ -60,7 +60,9 @@ class CacheConfig(Config): @staticmethod def reset(): """Resets the caches to their defaults. Used for tests.""" - properties.default_factor_size = float(os.environ.get(_CACHE_PREFIX, _DEFAULT_FACTOR_SIZE)) + properties.default_factor_size = float( + os.environ.get(_CACHE_PREFIX, _DEFAULT_FACTOR_SIZE) + ) properties.resize_all_caches_func = None _CACHES.clear() @@ -82,7 +84,9 @@ class CacheConfig(Config): """ def read_config(self, config, **kwargs): - self.event_cache_size = self.parse_size(config.get("event_cache_size", _DEFAULT_EVENT_CACHE_SIZE)) + self.event_cache_size = self.parse_size( + config.get("event_cache_size", _DEFAULT_EVENT_CACHE_SIZE) + ) self.cache_factors = {} # type: Dict[str, float] cache_config = config.get("caches", {})