diff options
author | Erik Johnston <erik@matrix.org> | 2021-03-29 11:12:00 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-03-29 11:12:00 +0100 |
commit | f83ad8dd2d54284c990829421c75442d116f6fc4 (patch) | |
tree | 4bf8c7c4200035be4bec465ea49ea0e9c2e8bd13 | |
parent | Ignore _JoinedHostsCache as it includes DataStore (diff) | |
download | synapse-f83ad8dd2d54284c990829421c75442d116f6fc4.tar.xz |
Fixup
-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 2bdadfa40c..9051d3bb4e 100644 --- a/synapse/util/caches/lrucache.py +++ b/synapse/util/caches/lrucache.py @@ -67,7 +67,7 @@ class _Node: self.value = value self.callbacks = callbacks - if asizeof and not value.__class__.endswith("_JoinedHostsCache"): + if asizeof and not (value.__class__ and value.__class__.endswith("_JoinedHostsCache"): self.memory = asizeof.asizeof(key) + asizeof.asizeof(value) else: self.memory = 0 |