mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 23:04:05 -04:00
Add type annotations to synapse.metrics
(#10847)
This commit is contained in:
parent
d993c3bb1e
commit
84fac0f814
12 changed files with 174 additions and 86 deletions
|
@ -159,7 +159,7 @@ class ExpiringCache(Generic[KT, VT]):
|
|||
self[key] = value
|
||||
return value
|
||||
|
||||
def _prune_cache(self) -> None:
|
||||
async def _prune_cache(self) -> None:
|
||||
if not self._expiry_ms:
|
||||
# zero expiry time means don't expire. This should never get called
|
||||
# since we have this check in start too.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue