mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-25 23:32:17 +08:00
Fix readme
This commit is contained in:
parent
ad01341c73
commit
0382fc1d08
@ -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"]
|
||||||
|
Loading…
Reference in New Issue
Block a user