修复uuid问题
This commit is contained in:
parent
299189f7db
commit
be16bf0233
@ -66,7 +66,8 @@ func (id *idWorker) nextid() (int64, error) {
|
||||
} else {
|
||||
id.sequence = 0
|
||||
}
|
||||
sarly := time.Now().Unix() % nodeMask
|
||||
var sarly int64 = 1
|
||||
//sarly := time.Now().Unix() % nodeMask
|
||||
id.lastTimestamp = timestamp
|
||||
return ((timestamp - id.twepoch) << timestampLeftShift) | (sarly << nodeIdShift) | id.sequence, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user