We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70dac6c commit 4ee0226Copy full SHA for 4ee0226
backend/utils/snowflake.py
@@ -86,7 +86,7 @@ def generate(self) -> int:
86
timestamp = self._current_millis()
87
88
if timestamp < self.last_timestamp:
89
- raise errors.ForbiddenError(msg=f'系统时间倒退,拒绝生成 ID 直到 {self.last_timestamp}')
+ raise errors.ServerError(msg=f'系统时间倒退,拒绝生成 ID 直到 {self.last_timestamp}')
90
91
if timestamp == self.last_timestamp:
92
self.sequence = (self.sequence + 1) & SnowflakeConfig.SEQUENCE_MASK
0 commit comments