Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Ignore type checking on explicit disable
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Aug 2, 2022
1 parent 64b476a commit 96656c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/storage/databases/main/events_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 96656c1

Please sign in to comment.