mirror of
https://git.asonix.dog/asonix/background-jobs.git
synced 2024-11-22 03:51:00 +00:00
max-retries should be 'retries', not 'tries'
This commit is contained in:
parent
fd0ace925d
commit
3eda504199
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ impl MaxRetries {
|
||||||
match *self {
|
match *self {
|
||||||
MaxRetries::Infinite => ShouldStop::Requeue,
|
MaxRetries::Infinite => ShouldStop::Requeue,
|
||||||
MaxRetries::Count(ref count) => {
|
MaxRetries::Count(ref count) => {
|
||||||
if (retry_count as usize) < *count {
|
if (retry_count as usize) <= *count {
|
||||||
ShouldStop::Requeue
|
ShouldStop::Requeue
|
||||||
} else {
|
} else {
|
||||||
ShouldStop::LimitReached
|
ShouldStop::LimitReached
|
||||||
|
|
Loading…
Reference in a new issue