summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-12-31 11:23:56 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-12-31 11:23:56 +0000
commitb30484ab34692e34ac834c022570a78be6d6bccc (patch)
treee6bbf72e0d45bb9b7b695b5df28bf4603d9a297e /synapse/api
parentMerge commit '654e239b2' into dinsic (diff)
parentMake LruCache register its own metrics (#8561) (diff)
downloadsynapse-b30484ab34692e34ac834c022570a78be6d6bccc.tar.xz
Merge commit '3ee17585c' into dinsic
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/auth.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py

index 37668bc42a..668e0e4314 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py
@@ -34,7 +34,6 @@ from synapse.api.room_versions import KNOWN_ROOM_VERSIONS from synapse.events import EventBase from synapse.logging import opentracing as opentracing from synapse.types import StateMap, UserID -from synapse.util.caches import register_cache from synapse.util.caches.lrucache import LruCache from synapse.util.metrics import Measure @@ -70,8 +69,7 @@ class Auth: self.store = hs.get_datastore() self.state = hs.get_state_handler() - self.token_cache = LruCache(10000) - register_cache("cache", "token_cache", self.token_cache) + self.token_cache = LruCache(10000, "token_cache") self._auth_blocking = AuthBlocking(self.hs)