mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-03 05:36:04 -04:00
Make SlavedIdTracker.advance have same interface as MultiWriterIDGenerator (#8171)
This commit is contained in:
parent
4c6c56dc58
commit
e3c91a3c55
12 changed files with 16 additions and 15 deletions
|
@ -44,7 +44,7 @@ class SlavedPresenceStore(BaseSlavedStore):
|
|||
|
||||
def process_replication_rows(self, stream_name, instance_name, token, rows):
|
||||
if stream_name == PresenceStream.NAME:
|
||||
self._presence_id_gen.advance(token)
|
||||
self._presence_id_gen.advance(instance_name, token)
|
||||
for row in rows:
|
||||
self.presence_stream_cache.entity_has_changed(row.user_id, token)
|
||||
self._get_presence_for_user.invalidate((row.user_id,))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue