This commit is contained in:
wangchuxiao 2023-05-18 15:04:11 +08:00
parent 8a8cd8655a
commit 2358ec3d90

View File

@ -137,7 +137,10 @@ func (c *msgCache) getSeqs(ctx context.Context, items []string, getkey func(s st
if seq.Err() != nil && seq.Err() != redis.Nil {
return nil, errs.Wrap(v.Err())
}
m[items[i]] = utils.StringToInt64(seq.Val())
seqInt64 := utils.StringToInt64(seq.Val())
if seqInt64 != 0 {
m[items[i]] = seqInt64
}
}
return m, nil
}