mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-22 21:29:51 +08:00
test cron
This commit is contained in:
parent
3649846423
commit
8839c36917
@ -166,15 +166,16 @@ func checkMaxSeqWithMongo(operationID, ID string, diffusionType int) error {
|
||||
if err != nil {
|
||||
return utils.Wrap(err, "GetNewestMsg failed")
|
||||
}
|
||||
if msg == nil {
|
||||
return nil
|
||||
}
|
||||
var seqMongo uint32
|
||||
if msg != nil {
|
||||
msgPb := &server_api_params.MsgData{}
|
||||
err = proto.Unmarshal(msg.Msg, msgPb)
|
||||
if err != nil {
|
||||
return utils.Wrap(err, "")
|
||||
}
|
||||
seqMongo = msgPb.Seq
|
||||
}
|
||||
if math.Abs(float64(seqMongo-uint32(seqRedis))) > 10 {
|
||||
log.NewWarn(operationID, utils.GetSelfFuncName(), seqMongo, seqRedis, "redis maxSeq is different with msg.Seq > 10", ID, diffusionType)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user