chore: slow down retries
This commit is contained in:
parent
4c1c878a4d
commit
63105ae7d2
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ func (v *MqttConnector) Unsubscribe(vin string) {
|
|||
}
|
||||
|
||||
func (v *MqttConnector) run(ctx context.Context, ts oauth2.TokenSource) {
|
||||
bo := backoff.NewExponentialBackOff(backoff.WithMaxInterval(time.Minute))
|
||||
bo := backoff.NewExponentialBackOff(backoff.WithInitialInterval(time.Second), backoff.WithMaxInterval(time.Minute))
|
||||
|
||||
for ctx.Err() == nil {
|
||||
time.Sleep(bo.NextBackOff())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue