summary refs log tree commit diff
path: root/synapse/api/auth.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-12-31 11:24:03 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-12-31 11:24:03 +0000
commit4c7d889be7ef5c1d123a926fd9481574bd4a6b4d (patch)
treeb1871cc359d90b9049c4cc34d34f91e107214a75 /synapse/api/auth.py
parentMerge commit '3ee17585c' into dinsic (diff)
parentReplace DeferredCache with LruCache where possible (#8563) (diff)
downloadsynapse-4c7d889be7ef5c1d123a926fd9481574bd4a6b4d.tar.xz
Merge commit '97647b33c' into dinsic
Diffstat (limited to 'synapse/api/auth.py')
-rw-r--r--synapse/api/auth.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py

index 668e0e4314..2d9ecb0a16 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py
@@ -69,7 +69,9 @@ class Auth: self.store = hs.get_datastore() self.state = hs.get_state_handler() - self.token_cache = LruCache(10000, "token_cache") + self.token_cache = LruCache( + 10000, "token_cache" + ) # type: LruCache[str, Tuple[str, bool]] self._auth_blocking = AuthBlocking(self.hs)