Skip to content

Comments

refactor: introduce intermediary struct#191

Merged
Migorithm merged 2 commits intomainfrom
refactor/snowflake-revisit
Feb 1, 2025
Merged

refactor: introduce intermediary struct#191
Migorithm merged 2 commits intomainfrom
refactor/snowflake-revisit

Conversation

@Migorithm
Copy link
Owner

Composition of timestamp and sequence to prevent race condition was a nice catch (Kudos to @JWSong )

With that though, generate still requires raw data of sequence and timestamp separately, potentially leading to mis insertion of data.

This PR is aimed at simplifying the logic and imparting the correct role to TimeStampSeq

@Migorithm Migorithm added the enhancement New feature or request label Feb 1, 2025
@Migorithm Migorithm self-assigned this Feb 1, 2025
Copy link
Contributor

@JWSong JWSong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much cleaner!

@Migorithm Migorithm merged commit 69aba69 into main Feb 1, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants