Skip to content

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