max-retries should be 'retries', not 'tries'

This commit is contained in:
asonix 2018-11-06 21:32:40 -06:00
parent fd0ace925d
commit 3eda504199

View file

@ -168,7 +168,7 @@ impl MaxRetries {
match *self {
MaxRetries::Infinite => ShouldStop::Requeue,
MaxRetries::Count(ref count) => {
if (retry_count as usize) < *count {
if (retry_count as usize) <= *count {
ShouldStop::Requeue
} else {
ShouldStop::LimitReached