mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04: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
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…
Reference in New Issue
Block a user