mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-01 10:56:26 -04:00
Change name and doc has_entity_changed
This commit is contained in:
parent
00cb3eb24b
commit
45cf827c8f
4 changed files with 6 additions and 4 deletions
|
@ -40,7 +40,9 @@ class StreamChangeCache(object):
|
|||
self.name = name
|
||||
caches_by_name[self.name] = self._cache
|
||||
|
||||
def get_entity_has_changed(self, entity, stream_pos):
|
||||
def has_entity_changed(self, entity, stream_pos):
|
||||
"""Returns True if the entity may have been updated since stream_pos
|
||||
"""
|
||||
assert type(stream_pos) is int
|
||||
|
||||
if stream_pos <= self._earliest_known_stream_pos:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue