chore(tgc): set backoff max interval to 10s

This commit is contained in:
iyear 2023-12-04 16:38:05 +08:00
parent 707b88eb26
commit f68ac3c169

View File

@ -141,6 +141,7 @@ func Backoff(_clock tdclock.Clock) backoff.BackOff {
b.Multiplier = 1.1
b.MaxElapsedTime = viper.GetDuration(consts.FlagReconnectTimeout)
b.MaxInterval = 10 * time.Second
b.Clock = _clock
return b
}