1
0
mirror of synced 2026-04-18 06:18:40 +08:00

auto commit

This commit is contained in:
yitter
2021-04-04 20:19:38 +08:00
parent 6bc5ff325c
commit f6dc91f3b8

View File

@@ -29,7 +29,7 @@ var _RedisPassword = ""
const _WorkerIdIndexKey string = "IdGen:WorkerId:Index" // redis 中的key
const _WorkerIdValueKeyPrefix string = "IdGen:WorkerId:Value:" // redis 中的key
const _WorkerIdFlag = "Y" // IdGen:WorkerId:Value:xx 的值(将来可用 _token 替代)
const _Log = true // 是否输出日志
const _Log = false // 是否输出日志
func Validate(workerId int32) int32 {
for _, value := range _workerIdList {