mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:46:06 -04:00
Use a stream id generator for backfilled ids
This commit is contained in:
parent
03e406eefc
commit
e36bfbab38
11 changed files with 69 additions and 61 deletions
|
@ -392,7 +392,7 @@ class PushRuleStore(SQLBaseStore):
|
|||
"""Get the position of the push rules stream.
|
||||
Returns a pair of a stream id for the push_rules stream and the
|
||||
room stream ordering it corresponds to."""
|
||||
return self._push_rules_stream_id_gen.get_max_token()
|
||||
return self._push_rules_stream_id_gen.get_current_token()
|
||||
|
||||
def have_push_rules_changed_for_user(self, user_id, last_id):
|
||||
if not self.push_rules_stream_cache.has_entity_changed(user_id, last_id):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue