mirror of
https://github.com/oarkflow/mq.git
synced 2025-09-27 04:15:52 +08:00
feat: Add connection
This commit is contained in:
@@ -146,6 +146,7 @@ func (c *Consumer) ConsumeMessage(ctx context.Context, msg *codec.Message, conn
|
||||
}
|
||||
|
||||
func (c *Consumer) ProcessTask(ctx context.Context, msg *Task) Result {
|
||||
defer RecoverPanic(RecoverTitle)
|
||||
queue, _ := GetQueue(ctx)
|
||||
if msg.Topic == "" && queue != "" {
|
||||
msg.Topic = queue
|
||||
|
Reference in New Issue
Block a user