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
|
@ -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