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

Removed unnecessary flush in sync Send() operation #230

Merged
merged 1 commit into from
Apr 20, 2020

Conversation

merlimat
Copy link
Contributor

Motivation

In Producer.Send() we're unnecessarily forcing a flush operation. This piece of code was a remnant from an early prototype and should have been removed when the proper handling of batching was introduced.

In this case, since we're calling internalSendAsync() with flushImmediately=true the message will be immediately sent.

@merlimat merlimat added this to the 0.1.1 milestone Apr 20, 2020
@merlimat merlimat self-assigned this Apr 20, 2020
@merlimat merlimat merged commit 23d4808 into apache:master Apr 20, 2020
@merlimat merlimat deleted the remove-flush branch April 20, 2020 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants