Skip to content

Commit a7851f6

Browse files
committed
fix(connection): Rate limit messages that are being pushed to Alexa
1 parent 2abad2a commit a7851f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MqttClient.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const globalLmiter = new Bottleneck({
55
highWater: 50,
66
reservoir: 40, // initial value
77
reservoirIncreaseAmount: 2,
8-
reservoirIncreaseInterval: 1000, // must be divisible by 250
8+
reservoirIncreaseInterval: 10000, // must be divisible by 250
99
reservoirIncreaseMaximum: 40,
1010
strategy: Bottleneck.strategy.LEAK,
1111

@@ -30,7 +30,7 @@ function MqttClient (options, callbacksObj) {
3030
highWater: 50,
3131
reservoir: 40, // initial value
3232
reservoirIncreaseAmount: 2,
33-
reservoirIncreaseInterval: 1000, // must be divisible by 250
33+
reservoirIncreaseInterval: 10000, // must be divisible by 250
3434
reservoirIncreaseMaximum: 40,
3535
strategy: Bottleneck.strategy.LEAK,
3636

0 commit comments

Comments
 (0)