2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-09-20 11:05:58 +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 resErr != nil {
if msg.Retried >= msg.Retry { if msg.Retried >= msg.Retry {
p.kill(msg, resErr.Error()) p.kill(msg, resErr.Error())
return } else {
p.retry(msg, resErr.Error())
} }
p.retry(msg, resErr.Error())
return return
} }
p.markAsDone(msg) p.markAsDone(msg)
return
} }
}() }()
} }