mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 04:04:57 -04:00
Remove ChainedIdGenerator
. (#8123)
It's just a thin wrapper around two ID gens to make `get_current_token` and `get_next` return tuples. This can easily be replaced by calling the appropriate methods on the underlying ID gens directly.
This commit is contained in:
parent
f594e434c3
commit
c9c544cda5
7 changed files with 26 additions and 95 deletions
|
@ -39,7 +39,7 @@ class EventSources(object):
|
|||
self.store = hs.get_datastore()
|
||||
|
||||
def get_current_token(self) -> StreamToken:
|
||||
push_rules_key, _ = self.store.get_push_rules_stream_token()
|
||||
push_rules_key = self.store.get_max_push_rules_stream_id()
|
||||
to_device_key = self.store.get_to_device_stream_token()
|
||||
device_list_key = self.store.get_device_stream_token()
|
||||
groups_key = self.store.get_group_stream_token()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue