2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-12-25 23:32:17 +08:00

Fix readme

This commit is contained in:
Ken Hibino 2019-12-07 08:47:17 -08:00
parent ad01341c73
commit 0382fc1d08

View File

@ -63,7 +63,7 @@ func main() {
} }
// if handler returns an error or panics, the task will be retried after some delay. // if handler returns an error or panics, the task will be retried after some delay.
func handler(t *Task) error { func handler(t *asynq.Task) error {
switch t.Type { switch t.Type {
case "send_welcome_email": case "send_welcome_email":
rid, ok := t.Payload["recipient_id"] rid, ok := t.Payload["recipient_id"]