diff options
author | Erik Johnston <erik@matrix.org> | 2021-03-26 17:51:11 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-03-26 17:51:11 +0000 |
commit | 9596641e1d2745bf2583fdd4fc772ee641a09301 (patch) | |
tree | 2c5620f85947608e0ba58e4e271ea219c102a62a | |
parent | Don't ban __iter__ (diff) | |
download | synapse-9596641e1d2745bf2583fdd4fc772ee641a09301.tar.xz |
Fix
-rw-r--r-- | synapse/util/caches/lrucache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/caches/lrucache.py b/synapse/util/caches/lrucache.py index 570bcac1fd..176011faad 100644 --- a/synapse/util/caches/lrucache.py +++ b/synapse/util/caches/lrucache.py @@ -68,7 +68,7 @@ class _Node: self.callbacks = callbacks if asizeof: - self.memory = asizeof.asizeof(self) + self.memory = asizeof.asizeof(key) + asizeof.asizeof(value) else: self.memory = 0 |