mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
Merge pull request #12 from njulk/main
Modify bug for getting lastest seq
This commit is contained in:
commit
efeba3432c
@ -66,7 +66,7 @@ func (d *DataBases) SetLastGetSeq(uid string) (err error) {
|
|||||||
|
|
||||||
//获取用户上一次主动拉取Seq的值
|
//获取用户上一次主动拉取Seq的值
|
||||||
func (d *DataBases) GetLastGetSeq(uid string) (int64, error) {
|
func (d *DataBases) GetLastGetSeq(uid string) (int64, error) {
|
||||||
key := userIncrSeq + uid
|
key := lastGetSeq + uid
|
||||||
return redis.Int64(d.Exec("GET", key))
|
return redis.Int64(d.Exec("GET", key))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user