mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-31 03:45:13 +00:00
Fix bug where StreamChangeCache
would not respect cache factors (#17152)
Annoyingly mypy didn't pick up this typo.
This commit is contained in:
parent
3818597751
commit
7c9ac01eb5
2 changed files with 2 additions and 1 deletions
1
changelog.d/17152.bugfix
Normal file
1
changelog.d/17152.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fix bug where `StreamChangeCache` would not respect configured cache factors.
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue