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

[BUGFIX] Check the incremented count for limit #123

Merged
merged 1 commit into from
Jun 4, 2021

Conversation

mixonic
Copy link
Member

@mixonic mixonic commented Jun 4, 2021

The prior implementation was checking count without incrementing it, and the implementation which wanted to log the limit message on the 100th message was logging it on the 101st. Additionally, the check for presence of the option.id was not correct.

Extracted from #118

@mixonic mixonic added the bug label Jun 4, 2021
@mixonic
Copy link
Member Author

mixonic commented Jun 4, 2021

cc @wagenet this cleans up some misses from the implementation in #93

@mixonic mixonic force-pushed the mixonic/fix-limit-bug branch from 769dff0 to 73d1ec0 Compare June 4, 2021 01:03
The prior implementation was checking `count` without incrementing it,
and the implementation which wanted to log the limit message on the
100th message was logging it on the 101st. Additionally, the check for
presence of the option.id was not correct.
@mixonic mixonic force-pushed the mixonic/fix-limit-bug branch from 73d1ec0 to 81a581c Compare June 4, 2021 01:05
@mixonic mixonic merged commit 92196df into master Jun 4, 2021
@mixonic mixonic deleted the mixonic/fix-limit-bug branch June 4, 2021 01:12
@wagenet
Copy link
Contributor

wagenet commented Jun 4, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants