mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-21 10:18:50 +02:00
Change exponent settings
This commit is contained in:
parent
61c06c7dd2
commit
a8b58a182e
@ -349,8 +349,8 @@ func (conn *Conn) reconnectLoopWithRetry() {
|
|||||||
func (conn *Conn) prepareExponentTicker() *backoff.Ticker {
|
func (conn *Conn) prepareExponentTicker() *backoff.Ticker {
|
||||||
bo := backoff.WithContext(&backoff.ExponentialBackOff{
|
bo := backoff.WithContext(&backoff.ExponentialBackOff{
|
||||||
InitialInterval: 800 * time.Millisecond,
|
InitialInterval: 800 * time.Millisecond,
|
||||||
RandomizationFactor: 1,
|
RandomizationFactor: 0.01,
|
||||||
Multiplier: 1.99,
|
Multiplier: 2,
|
||||||
MaxInterval: conn.config.Timeout,
|
MaxInterval: conn.config.Timeout,
|
||||||
MaxElapsedTime: 0,
|
MaxElapsedTime: 0,
|
||||||
Stop: backoff.Stop,
|
Stop: backoff.Stop,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user