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

chore: Add an explicit +Unpin to our buffers #7594

Merged
merged 1 commit into from
May 26, 2021
Merged

chore: Add an explicit +Unpin to our buffers #7594

merged 1 commit into from
May 26, 2021

Conversation

blt
Copy link
Contributor

@blt blt commented May 26, 2021

This commit adds an explicit +Unpin to our buffer type definition, introducing
EventStream type alias to tidy up some repitition. This is done to support
pull request #7576 where this changed is needed but is a little outside the
scope of that PR. The major change here is in src/utilization where I had to
re-implement the select loop to use an explicit stream definition. The stream!
macro used previously couldn't make the + Unpin guarantee. It wasn't clear to
me that it could be fixed upstream.

Signed-off-by: Brian L. Troutwine [email protected]

This commit adds an explicit +Unpin to our buffer type definition, introducing
`EventStream` type alias to tidy up some repitition. This is done to support
pull request #7576 where this changed is needed but is a little outside the
scope of that PR. The major change here is in `src/utilization` where I had to
re-implement the select loop to use an explicit stream definition. The `stream!`
macro used previously couldn't make the `+ Unpin` guarantee. It wasn't clear to
me that it could be fixed upstream.

Signed-off-by: Brian L. Troutwine <[email protected]>
@blt blt merged commit ca9d6b7 into vectordotdev:master May 26, 2021
@blt blt deleted the explicit_unpin branch May 26, 2021 14:44
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.

2 participants