summary refs log tree commit diff
path: root/synapse/util/caches
diff options
context:
space:
mode:
authorErik Johnston <erikj@matrix.org>2023-09-15 09:10:24 +0100
committerGitHub <noreply@github.com>2023-09-15 09:10:24 +0100
commitedec0b93cabbe5e03d658a2aa4c2c1b79cf8e85e (patch)
tree3d0fb030ed7cdf4a1b0a6d9549c1fbb877da11ea /synapse/util/caches
parentSome minor performance fixes for task schedular (#16313) (diff)
downloadsynapse-edec0b93cabbe5e03d658a2aa4c2c1b79cf8e85e.tar.xz
Only use literal strings for process names (#16315)
Diffstat (limited to 'synapse/util/caches')
-rw-r--r--synapse/util/caches/expiringcache.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/util/caches/expiringcache.py b/synapse/util/caches/expiringcache.py

index 8e4c34039d..e73cf66080 100644 --- a/synapse/util/caches/expiringcache.py +++ b/synapse/util/caches/expiringcache.py
@@ -84,9 +84,7 @@ class ExpiringCache(Generic[KT, VT]): return def f() -> "defer.Deferred[None]": - return run_as_background_process( - "prune_cache_%s" % self._cache_name, self._prune_cache - ) + return run_as_background_process("prune_cache", self._prune_cache) self._clock.looping_call(f, self._expiry_ms / 2)