summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-04-26 10:58:04 +0100
committerErik Johnston <erik@matrix.org>2021-04-26 10:58:04 +0100
commit2bf93f9b34a5d55f29728e212a4883eae8890b0d (patch)
treee33ab200a4008f7903d43c6022699a264ea18fdc
parentDon't explode if memory has been twiddled (diff)
downloadsynapse-2bf93f9b34a5d55f29728e212a4883eae8890b0d.tar.xz
Fix
-rw-r--r--synapse/util/caches/__init__.py2
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