feat: Add connection

This commit is contained in:
sujit
2024-10-22 09:34:21 +05:45
parent 48918f1903
commit c2013827c6
12 changed files with 167 additions and 10 deletions

View File

@@ -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