mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 18:34:56 -04:00
Add types to synapse.util. (#10601)
This commit is contained in:
parent
ceab5a4bfa
commit
524b8ead77
41 changed files with 400 additions and 253 deletions
|
@ -195,7 +195,7 @@ class StreamChangeCache:
|
|||
for entity in r:
|
||||
del self._entity_to_key[entity]
|
||||
|
||||
def _evict(self):
|
||||
def _evict(self) -> None:
|
||||
while len(self._cache) > self._max_size:
|
||||
k, r = self._cache.popitem(0)
|
||||
self._earliest_known_stream_pos = max(k, self._earliest_known_stream_pos)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue