This commit is contained in:
李子铭 2025-03-12 10:01:02 +08:00
parent 6a15c47799
commit 8e964dd8a8
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ func (w *WechatNotifyConsumer) consumeMessages(ctx context.Context, mqConsumer m
{ {
// Topic中没有消息可消费。 // Topic中没有消息可消费。
if strings.Contains(err.(errors.ErrCode).Error(), "MessageNotExist") { if strings.Contains(err.(errors.ErrCode).Error(), "MessageNotExist") {
fmt.Println("\nNo new message, continue!") //fmt.Println("\nNo new message, continue!")
} else { } else {
log.Errorf("\tTopic中没有消息可消费判定报错:%v\n", err) log.Errorf("\tTopic中没有消息可消费判定报错:%v\n", err)
time.Sleep(time.Duration(3) * time.Second) time.Sleep(time.Duration(3) * time.Second)