diff options
author | Erik Johnston <erikj@matrix.org> | 2023-09-15 09:10:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-15 09:10:24 +0100 |
commit | edec0b93cabbe5e03d658a2aa4c2c1b79cf8e85e (patch) | |
tree | 3d0fb030ed7cdf4a1b0a6d9549c1fbb877da11ea /synapse/util/caches/expiringcache.py | |
parent | Some minor performance fixes for task schedular (#16313) (diff) | |
download | synapse-edec0b93cabbe5e03d658a2aa4c2c1b79cf8e85e.tar.xz |
Only use literal strings for process names (#16315)
Diffstat (limited to '')
-rw-r--r-- | synapse/util/caches/expiringcache.py | 4 |
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) |