diff --git a/pkg/common/db/cache/msg.go b/pkg/common/db/cache/msg.go index 99dfe46b4..bd4b2772c 100644 --- a/pkg/common/db/cache/msg.go +++ b/pkg/common/db/cache/msg.go @@ -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 }