-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Currently it seems the only reason for SequenceProperties to be mutable is that it needs to be aware of last_timestamp, and sequence when generating new ids.
If you need to have a multi-threaded sequence generator this would require to have an Arc<Mutex<SequenceProperties>> due to it.
Would suggest to make changes or expose a new api so that perhaps, you can pass the last_id seperately as immutable, so perhaps AtomicU64 could be used instead of the Mutex?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels