-
Notifications
You must be signed in to change notification settings - Fork 423
feat: add p/snowflake #2076
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add p/snowflake #2076
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
There is no other way to guarantee atomicity besides using time in environments where atomic is not supported. If we consider it further, it seems possible to generate a random value (using |
Thanks for your explanation. I will check the progress of |
Output this my last commit 485ce8d: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finish corrective review
Hey @DIGIX666, can you please update this branch with |
🛠 PR Checks SummaryAll Automated Checks passed. ✅ Manual Checks (for Reviewers):
Read More🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers. ✅ Automated Checks (for Contributors):🟢 Maintainers must be able to edit this pull request (more info) ☑️ Contributor Actions:
☑️ Reviewer Actions:
📚 Resources:Debug
|
I suggest adding a `UUID` package because I think it could be useful to have it available. I think it can further facilitate traceability and compatibility between different systems and apps as they would have a common standard for identifying entities. To improve `UUID` generation, I wanted to add a resolver like `Snowflake`, but from what I've searched, `sync/atomic` is not supported on Gno. Is there another similar package that I might have missed ? --------- Co-authored-by: théo dub <theodub@MacThox.local> Co-authored-by: Morgan <morgan@morganbaz.com>
I suggest adding a
UUID
package because I think it could be useful to have it available. I think it can further facilitate traceability and compatibility between different systems and apps as they would have a common standard for identifying entities.To improve
UUID
generation, I wanted to add a resolver likeSnowflake
, but from what I've searched,sync/atomic
is not supported on Gno. Is there another similar package that I might have missed ?