From 96656c1c3e412475b58c366d07fb2357ec0e98bb Mon Sep 17 00:00:00 2001 From: Nick Barrett Date: Tue, 2 Aug 2022 14:08:59 +0100 Subject: [PATCH] Ignore type checking on explicit disable --- synapse/storage/databases/main/events_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/databases/main/events_worker.py b/synapse/storage/databases/main/events_worker.py index 21b48d15bb5f..40f806b0b051 100644 --- a/synapse/storage/databases/main/events_worker.py +++ b/synapse/storage/databases/main/events_worker.py @@ -249,7 +249,7 @@ def __init__( # TODO: temporary explicit disable of this cache due to thrashing requests # burning CPU. Possibly need to move this cache to where we get events from DB. if external_sharded_cache.is_enabled() and False: - self._get_event_cache = RedisLruCache( + self._get_event_cache = RedisLruCache( # type: ignore cache_name="*getEvent*", max_size=hs.config.caches.event_cache_size, redis_shard_cache=external_sharded_cache,