mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 21:15:13 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user