mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 08:32:40 +08:00
use redis function
This commit is contained in:
@ -81,6 +81,8 @@ local function allocateSerial(keys, args)
|
||||
begin = min
|
||||
finish = step
|
||||
redis.call("HSET", key, code, step)
|
||||
|
||||
-- 检查上次绕回时间,判断是否需要检查时间段冲突
|
||||
reback = 1
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user