pull/131/head
Gordon 3 years ago
parent 2adbf9f686
commit 570c0cb9a1

@ -42,17 +42,17 @@ func main() {
for { for {
uidList, err := im_mysql_model.SelectAllUID() uidList, err := im_mysql_model.SelectAllUID()
if err != nil { if err != nil {
log.NewError("999999", err.Error()) //log.NewError("999999", err.Error())
} else { } else {
for _, v := range uidList { for _, v := range uidList {
minSeq, err := commonDB.DB.GetMinSeqFromMongo(v) minSeq, err := commonDB.DB.GetMinSeqFromMongo(v)
if err != nil { if err != nil {
log.NewError("999999", "get user minSeq err", err.Error(), v) //log.NewError("999999", "get user minSeq err", err.Error(), v)
continue continue
} else { } else {
err := commonDB.DB.SetUserMinSeq(v, minSeq) err := commonDB.DB.SetUserMinSeq(v, minSeq)
if err != nil { if err != nil {
log.NewError("999999", "set user minSeq err", err.Error(), v) //log.NewError("999999", "set user minSeq err", err.Error(), v)
} }
} }
time.Sleep(time.Duration(100) * time.Millisecond) time.Sleep(time.Duration(100) * time.Millisecond)

Loading…
Cancel
Save