mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Fix inequalities
This commit is contained in:
parent
03b2c2577c
commit
82cf3a8043
@ -45,7 +45,7 @@ class StreamChangeCache(object):
|
||||
"""
|
||||
assert type(stream_pos) is int
|
||||
|
||||
if stream_pos <= self._earliest_known_stream_pos:
|
||||
if stream_pos < self._earliest_known_stream_pos:
|
||||
cache_counter.inc_misses(self.name)
|
||||
return True
|
||||
|
||||
@ -67,7 +67,7 @@ class StreamChangeCache(object):
|
||||
"""
|
||||
assert type(stream_pos) is int
|
||||
|
||||
if stream_pos > self._earliest_known_stream_pos:
|
||||
if stream_pos >= self._earliest_known_stream_pos:
|
||||
keys = self._cache.keys()
|
||||
i = keys.bisect_right(stream_pos)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user