mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
batch to mongo
This commit is contained in:
parent
a35712f281
commit
fa7c6b6f52
@ -65,7 +65,7 @@ func (d *DataBases) GetUserMaxSeq(uid string) (uint64, error) {
|
|||||||
//set the largest Seq
|
//set the largest Seq
|
||||||
func (d *DataBases) SetUserMaxSeq(uid string, maxSeq uint64) error {
|
func (d *DataBases) SetUserMaxSeq(uid string, maxSeq uint64) error {
|
||||||
key := userIncrSeq + uid
|
key := userIncrSeq + uid
|
||||||
_, err := redis.Uint64(d.Exec("SET", key, maxSeq))
|
_, err := d.Exec("SET", key, maxSeq)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user