add timer update redis minSeq

This commit is contained in:
Gordon
2021-11-10 18:13:04 +08:00
parent a08aeee0c2
commit b729cac998
3 changed files with 85 additions and 31 deletions
+2 -2
View File
@@ -45,9 +45,9 @@ func (d *DataBases) GetUserMaxSeq(uid string) (int64, error) {
}
//Set the user's minimum seq
func (d *DataBases) SetUserMinSeq(uid string) (err error) {
func (d *DataBases) SetUserMinSeq(uid string, minSeq int64) (err error) {
key := userMinSeq + uid
_, err = d.Exec("SET", key)
_, err = d.Exec("SET", key, minSeq)
return err
}