test cron

This commit is contained in:
wangchuxiao
2022-11-01 19:39:56 +08:00
parent 0d46349386
commit 4989bb07f6
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -82,6 +82,9 @@ func deleteMongoMsg(operationID string, ID string, index int64, delMsgIDList *[]
}
return getDelMaxSeqByIDList(*delMsgIDList), delMongoMsgs(operationID, delMsgIDList)
}
if index == 0 && msgs == nil {
return 0, nil
}
if len(msgs.Msg) > db.GetSingleGocMsgNum() {
log.NewWarn(operationID, utils.GetSelfFuncName(), "msgs too large", len(msgs.Msg), msgs.UID)
}