From 63105ae7d29c64732bc742ed0416a353f46d082f Mon Sep 17 00:00:00 2001 From: andig Date: Thu, 9 Oct 2025 09:51:37 +0200 Subject: [PATCH] chore: slow down retries --- vehicle/bmw/cardata/mqtt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vehicle/bmw/cardata/mqtt.go b/vehicle/bmw/cardata/mqtt.go index e0356761a..45587496c 100644 --- a/vehicle/bmw/cardata/mqtt.go +++ b/vehicle/bmw/cardata/mqtt.go @@ -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())