mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 22:34:55 +00:00
reset index to 0, not to 1
This commit is contained in:
parent
4a13cafa98
commit
021cc2017d
@ -57,7 +57,7 @@ OUTER:
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
// Perform an exponential backoff
|
// Perform an exponential backoff
|
||||||
failures++
|
failures++
|
||||||
p.lastIndex = 1
|
p.lastIndex = 0
|
||||||
retry := retryInterval * time.Duration(failures*failures)
|
retry := retryInterval * time.Duration(failures*failures)
|
||||||
if retry > maxBackoffTime {
|
if retry > maxBackoffTime {
|
||||||
retry = maxBackoffTime
|
retry = maxBackoffTime
|
||||||
|
Loading…
x
Reference in New Issue
Block a user