diff options
author | Erik Johnston <erik@matrix.org> | 2021-04-26 10:58:04 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-04-26 10:58:04 +0100 |
commit | 2bf93f9b34a5d55f29728e212a4883eae8890b0d (patch) | |
tree | e33ab200a4008f7903d43c6022699a264ea18fdc | |
parent | Don't explode if memory has been twiddled (diff) | |
download | synapse-2bf93f9b34a5d55f29728e212a4883eae8890b0d.tar.xz |
Fix
-rw-r--r-- | synapse/util/caches/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/caches/__init__.py b/synapse/util/caches/__init__.py index 600d10b89e..fc97d956e9 100644 --- a/synapse/util/caches/__init__.py +++ b/synapse/util/caches/__init__.py @@ -82,7 +82,7 @@ class CacheMetric: def dec_memory_usage(self, memory: int): self.memory_usage -= memory - def clear_memory_usage(self, memory: int): + def clear_memory_usage(self): if self.memory_usage is not None: self.memory_usage = 0 |