2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-12-24 06:42:16 +08:00

Minor cleanup

This commit is contained in:
Ken Hibino 2019-12-25 20:04:29 -08:00
parent 698fdcfcb2
commit 6491f46955

View File

@ -137,13 +137,12 @@ func (p *processor) exec() {
if resErr != nil {
if msg.Retried >= msg.Retry {
p.kill(msg, resErr.Error())
return
} else {
p.retry(msg, resErr.Error())
}
p.retry(msg, resErr.Error())
return
}
p.markAsDone(msg)
return
}
}()
}