batch to mongo

This commit is contained in:
skiffer-git 2022-05-20 13:15:32 +08:00
parent 17695927d5
commit 866c7d4f2f

View File

@ -71,7 +71,7 @@ func (d *DataBases) GetUserMaxSeq(uid string) (uint64, error) {
//set the largest Seq
func (d *DataBases) SetUserMaxSeq(uid string, maxSeq uint64) error {
key := userIncrSeq + uid
_, err := redis.Uint64(d.Exec("SET", key, maxSeq))
_, err := d.Exec("SET", key, maxSeq)
return err
}