排查saveUniKey问题

This commit is contained in:
zhangkun 2024-12-03 22:28:10 +08:00
parent a3b1a527e7
commit d7621eec77
2 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ func (core *Core) SaveUniKey(period string, keyName string, extt time.Duration,
refName := keyName + "|refer"
refRes, err := core.RedisCli.GetSet(refName, 1).Result()
core.RedisCli.Expire(refName, extt)
if len(refRes) != 0 || err != nil {
if len(refRes) != 0 || err == nil {
return
}
cl.ToStruct(core)

BIN
tunas

Binary file not shown.