1
0
mirror of synced 2026-05-21 01:36:36 +08:00

auto commit

This commit is contained in:
yitter
2025-04-10 13:37:49 +08:00
parent b355947388
commit 942ba6adcb
3 changed files with 3 additions and 3 deletions

View File

@@ -112,7 +112,7 @@ static inline int64_t CalcId(SnowFlakeWorker *worker) {
}
static inline int64_t CalcTurnBackId(SnowFlakeWorker *worker) {
uint64_t result = (worker->_LastTimeTick << worker->_TimestampShift) | (worker->WorkerId << worker->SeqBitLength) |
uint64_t result = (worker->_TurnBackTimeTick << worker->_TimestampShift) | (worker->WorkerId << worker->SeqBitLength) |
(worker->_TurnBackIndex);
worker->_TurnBackTimeTick--;
return result;