mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-01 07:35:58 +08:00
batch to mongo
This commit is contained in:
committed by
Xinwei Xiong(cubxxw-openim)
parent
3345771bca
commit
5e76a8b3a8
@@ -63,7 +63,7 @@ func (d *DataBases) GetUserMaxSeq(uid string) (uint64, error) {
|
||||
}
|
||||
|
||||
//set the largest Seq
|
||||
func (d *DataBases) SetUserMaxSeq(uid string, maxSeq uint32) error {
|
||||
func (d *DataBases) SetUserMaxSeq(uid string, maxSeq uint64) error {
|
||||
key := userIncrSeq + uid
|
||||
_, err := redis.Uint64(d.Exec("SET", key, maxSeq))
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user