mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-08 08:12:42 -04:00
Add a get_next_txn
method to StreamIdGenerator
to match MultiWriterIdGenerator
(#15191
This commit is contained in:
parent
ecbe0ddbe7
commit
1eea662780
4 changed files with 48 additions and 11 deletions
|
@ -205,7 +205,7 @@ class LocalSequenceGenerator(SequenceGenerator):
|
|||
"""
|
||||
Args:
|
||||
get_first_callback: a callback which is called on the first call to
|
||||
get_next_id_txn; should return the curreent maximum id
|
||||
get_next_id_txn; should return the current maximum id
|
||||
"""
|
||||
# the callback. this is cleared after it is called, so that it can be GCed.
|
||||
self._callback: Optional[GetFirstCallbackType] = get_first_callback
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue