mirror of
https://github.com/oarkflow/mq.git
synced 2025-10-07 08:50:54 +08:00
feat: Add connection
This commit is contained in:
@@ -71,7 +71,9 @@ func (e *EmailDelivery) ProcessTask(ctx context.Context, task *mq.Task) mq.Resul
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return mq.Result{Payload: task.Payload, Ctx: ctx}
|
||||
data["email_sent"] = true
|
||||
d, _ := json.Marshal(data)
|
||||
return mq.Result{Payload: d, Ctx: ctx}
|
||||
}
|
||||
|
||||
type SendSms struct {
|
||||
|
Reference in New Issue
Block a user