Skip to content
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: support timestamp delta offset configuration #3

Open
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

dickens7
Copy link

apache/apisix#4559

Support timestamp delta offset configuration

Adapt to sonyflake, baidu UidGenerator

The SNOWFLAKE_EPOC default value is changed back to its original value

When apisix is used, it is controlled by plugin_attr to keep snowflake.so compatible with 1.0

@@ -0,0 +1,4 @@
local sf = require "snowflake"

sf.init(0x1f, 0x1f, nil, 11, 11, 13, 1000)

Choose a reason for hiding this comment

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

We can put it into test_sonyflake.lua, and we need to check if the delta option works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants