Add distributed deployment support for snowflake ID (#927)

* feat: Add support distributed deployment for Snowflake

* Update the algorithm implementation

* Remove duplicate codes and update error messages
This commit is contained in:
Dylan
2025-11-19 12:48:24 +08:00
committed by GitHub
parent 551dc51c52
commit 16bcaf963d
4 changed files with 190 additions and 64 deletions
+2 -2
View File
@@ -70,6 +70,6 @@ class UploadUrl:
class SnowflakeInfo:
timestamp: int
datetime: str
cluster_id: int
node_id: int
datacenter_id: int
worker_id: int
sequence: int