Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache MODE -> power level changes before applying #1186

Merged
merged 11 commits into from
Nov 13, 2020

Conversation

Half-Shot
Copy link
Contributor

Fixes #1180

If we see a lot of mode changes at once, the bridge will attempt to send one power level event for each. This PR will instead cache the power level changes for a short while in memory, and will apply them once the requests stop coming in. This is configurable in the config file, but defaults to 1 second.

@Half-Shot Half-Shot requested review from a team and jaller94 and removed request for a team November 12, 2020 15:43
Copy link
Contributor

@jaller94 jaller94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code-wise I don't see anything wrong with this.

@Half-Shot Half-Shot merged commit 465033b into develop Nov 13, 2020
@Half-Shot Half-Shot deleted the hs/cache-pls-for-a-bit branch November 13, 2020 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'Voice only' Freenode channels are spammed by a crazy amount of "changed the power level to" messages
2 participants