Fix deadline check logic
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
99ba233da7
commit
9f3b651184
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ func (i *instanceDeleteBackoff) ShouldProcess(key string) (bool, time.Time) {
|
|||
|
||||
now := time.Now().UTC()
|
||||
deadline := ib.lastRecordedFailureTime.Add(time.Duration(ib.backoffSeconds) * time.Second)
|
||||
return deadline.After(now), deadline
|
||||
return now.After(deadline), deadline
|
||||
}
|
||||
|
||||
func (i *instanceDeleteBackoff) Delete(key string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue