-
Notifications
You must be signed in to change notification settings - Fork 28
(fix): fix loop on batch event processor #224
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide a unit test to prove that this fixes the issue?
…ount is reached, the timer will also have been reached and it will flush. then hang on poll.
…h and then hang on pop
|
||
item = @event_queue.pop if @event_queue.length.positive? | ||
item = @event_queue.pop if @event_queue.length.positive? || @use_pop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a note here to explain what we are doing with the nil count?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Summary
Test plan
Issues