Cardata: fix 100% CPU usage (#25804)
This commit is contained in:
parent
a55f2bbcd7
commit
9eefcf1a6e
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ func (v *MqttConnector) Unsubscribe(vin string) {
|
|||
}
|
||||
|
||||
func (v *MqttConnector) run(ctx context.Context, ts oauth2.TokenSource) {
|
||||
bo := backoff.NewExponentialBackOff(backoff.WithInitialInterval(time.Second), backoff.WithMaxInterval(time.Minute))
|
||||
bo := backoff.NewExponentialBackOff(backoff.WithInitialInterval(time.Second), backoff.WithMaxInterval(time.Minute), backoff.WithMaxElapsedTime(0))
|
||||
|
||||
for ctx.Err() == nil {
|
||||
time.Sleep(bo.NextBackOff())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue