//Back off linearly for TCP/IP level network errors. // These problems are generally temporary and tend to clear quickly. // Increase the delay in reconnects by 250ms each attempt, up to 16 seconds. func NewTCPIPErrBackoff() backoff.BackOffer { return backoff.NewLinear(0, time.Second*16, time.Millisecond*250, 1) }
//Back off linearly for TCP/IP level network errors. // These problems are generally temporary and tend to clear quickly. // Increase the delay in reconnects by 250ms each attempt, up to 16 seconds. func NewTCPIPErrBackoff() backoff.Interface { return backoff.NewLinear(0, time.Second*16, time.Millisecond*250, 1) }