This commit is contained in:
laodaming
2023-08-08 12:22:15 +08:00
parent ff86cceb17
commit 93191d3beb
11 changed files with 255 additions and 6 deletions

View File

@@ -123,7 +123,7 @@ func (h *RabbitMqHandle) Consume(ctx context.Context, queueName constants.RABBIT
<-limit
wait.Done()
}()
if err = handle.Run(m.Body); err != nil {
if err = handle.Run(ctx, m.Body); err != nil {
logx.Error("failed to deal with MQ message:", string(m.Body))
return
}