fix bug: v.MsgData == nil

This commit is contained in:
skiffer-git 2022-06-07 10:52:52 +08:00
parent 6efb1a6705
commit 385f371c06

View File

@ -109,6 +109,7 @@ func (och *OnlineHistoryConsumerHandler) Run(channelID int) {
log.Debug(triggerID, "msg come to storage center", v.String()) log.Debug(triggerID, "msg come to storage center", v.String())
if v.MsgData == nil { if v.MsgData == nil {
log.NewWarn(triggerID, "msg come to storage center nil", v.String()) log.NewWarn(triggerID, "msg come to storage center nil", v.String())
panic(v.String())
continue continue
} }
isHistory := utils.GetSwitchFromOptions(v.MsgData.Options, constant.IsHistory) isHistory := utils.GetSwitchFromOptions(v.MsgData.Options, constant.IsHistory)