mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Rewrite conditional
This commit is contained in:
parent
eed59dcc1e
commit
efc2b7db95
@ -99,7 +99,7 @@ class StreamChangeCache(object):
|
|||||||
keys = self._cache.keys()
|
keys = self._cache.keys()
|
||||||
i = keys.bisect_right(stream_pos)
|
i = keys.bisect_right(stream_pos)
|
||||||
|
|
||||||
return len(keys[i:]) > 0
|
return i < len(keys)
|
||||||
else:
|
else:
|
||||||
self.metrics.inc_misses()
|
self.metrics.inc_misses()
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user