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

reset []bytes after getting them from sync.Pool #119

Merged
merged 3 commits into from
Sep 17, 2018
Merged

reset []bytes after getting them from sync.Pool #119

merged 3 commits into from
Sep 17, 2018

Conversation

komuw
Copy link
Owner

@komuw komuw commented Sep 15, 2018

Thank you for contributing to meli.
Every contribution to meli is important to us.

Contributor offers to license certain software (a “Contribution” or multiple
“Contributions”) to meli, and meli agrees to accept said Contributions,
under the terms of the MIT License.
Contributor understands and agrees that meli shall have the irrevocable and perpetual right to make
and distribute copies of any Contribution, as well as to create and distribute collective works and
derivative works of any Contribution, under the MIT License.

Now,

What(What have you changed/added/removed?)

  • reset the buffer, after getting it from a sync.Pool, since it may contain data from a previous round

Why(Why did you change/add/remove it?)

@komuw komuw merged commit 87eb13e into master Sep 17, 2018
@komuw komuw deleted the issues/118 branch September 17, 2018 05:09
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.

reset items from sync.pool
1 participant