fix
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user