diff options
author | Erik Johnston <erikj@element.io> | 2024-05-03 18:00:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-03 18:00:08 +0100 |
commit | 7c9ac01eb5fd18e564d6650c2c0f853822aec212 (patch) | |
tree | d37eb9c0ede9b8da018a5fee85c2fca62077eaa4 /synapse | |
parent | Fix lint.sh script (#17148) (diff) | |
download | synapse-7c9ac01eb5fd18e564d6650c2c0f853822aec212.tar.xz |
Fix bug where `StreamChangeCache` would not respect cache factors (#17152)
Annoyingly mypy didn't pick up this typo.
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/util/caches/stream_change_cache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/caches/stream_change_cache.py b/synapse/util/caches/stream_change_cache.py index d8253bd942..2079ca789c 100644 --- a/synapse/util/caches/stream_change_cache.py +++ b/synapse/util/caches/stream_change_cache.py @@ -115,7 +115,7 @@ class StreamChangeCache: """ new_size = math.floor(self._original_max_size * factor) if new_size != self._max_size: - self.max_size = new_size + self._max_size = new_size self._evict() return True return False |