summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-10-18 13:59:04 +0100
committerGitHub <noreply@github.com>2022-10-18 13:59:04 +0100
commit8e50299d8b112364b011ca8f89bc19a97e9622ec (patch)
tree74d809ad8e60f308cbe169ac8e85c46d938ad6bf /synapse
parentDeal with some GHA deprecation warnings (#14216) (diff)
downloadsynapse-8e50299d8b112364b011ca8f89bc19a97e9622ec.tar.xz
Fix `track_memory_usage` on poetry-core 1.3.x installations (#14221)
* Fix `track_memory_usage` on poetry-core 1.3.x installations

The same kind of problem as discussed in #14085:

1. we defined an extra with an underscore
2. we look it up at runtime with an underscore
3. but poetry-core 1.3.x. installs it with a dash, causing (2) to fail.

Fix by using a dash everywhere.

* Changelog
Diffstat (limited to 'synapse')
-rw-r--r--synapse/config/cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/config/cache.py b/synapse/config/cache.py

index 2db8cfb005..eb4194a5a9 100644 --- a/synapse/config/cache.py +++ b/synapse/config/cache.py
@@ -159,7 +159,7 @@ class CacheConfig(Config): self.track_memory_usage = cache_config.get("track_memory_usage", False) if self.track_memory_usage: - check_requirements("cache_memory") + check_requirements("cache-memory") expire_caches = cache_config.get("expire_caches", True) cache_entry_ttl = cache_config.get("cache_entry_ttl", "30m")