You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I was struggeling a lot because I thought there's something wrong in my code. But now I figured out, that I initialized the Bottleneck with "invalid" settings:
new Bottleneck({
minTime: 50,
reservoir: 50,
reservoirRefreshInterval: 5000,
});
The Bottleneck refreshs every 5 seconds the resevoir, but I forgot to set reservoirRefreshAmount (because I thought that reservoir will be used for that). I think it would be good for other developers that if reservoirRefreshAmount is set it throws an error if reservoirRefreshAmount is not set (and vice versa). Same for reservoirIncreaseInterval and reservoirIncreaseAmount.
The text was updated successfully, but these errors were encountered:
Hey, I was struggeling a lot because I thought there's something wrong in my code. But now I figured out, that I initialized the Bottleneck with "invalid" settings:
The Bottleneck refreshs every 5 seconds the resevoir, but I forgot to set
reservoirRefreshAmount
(because I thought thatreservoir
will be used for that). I think it would be good for other developers that ifreservoirRefreshAmount
is set it throws an error ifreservoirRefreshAmount
is not set (and vice versa). Same forreservoirIncreaseInterval
andreservoirIncreaseAmount
.The text was updated successfully, but these errors were encountered: