mirror of
https://github.com/hibiken/asynq.git
synced 2025-08-25 15:11:33 +08:00
Minor cleanup
This commit is contained in:
@@ -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
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
Reference in New Issue
Block a user