mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-04 09:05:59 +08:00
get seqs
This commit is contained in:
Vendored
+4
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user