mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-27 20:30:40 +08:00
get seqs
This commit is contained in:
parent
8a8cd8655a
commit
2358ec3d90
5
pkg/common/db/cache/msg.go
vendored
5
pkg/common/db/cache/msg.go
vendored
@ -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 {
|
if seq.Err() != nil && seq.Err() != redis.Nil {
|
||||||
return nil, errs.Wrap(v.Err())
|
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
|
return m, nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user