mirror of https://github.com/hashicorp/consul
agent: Ensure we don't retry too often
parent
e171df2e2c
commit
a5f05fa902
|
@ -230,7 +230,7 @@ SYNC:
|
||||||
case <-shutdownCh:
|
case <-shutdownCh:
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
case <-time.After(randomStagger(aeScale(syncRetryIntv, len(l.iface.LANMembers())))):
|
case <-time.After(syncRetryIntv + randomStagger(aeScale(syncRetryIntv, len(l.iface.LANMembers())))):
|
||||||
case <-shutdownCh:
|
case <-shutdownCh:
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue