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

Remove Sync bound from Body::wrap_stream #2088

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

davidpdrsn
Copy link
Contributor

Fixes #1969

By using SyncWrapper we can avoid requiring Sync for the stream passed to Body::wrap_stream. This makes it easier to use streams like axum's BodyDataStream.

@davidpdrsn
Copy link
Contributor Author

Hm the CI error seems to be unrelated 🤔

@seanmonstar seanmonstar merged commit 837a58e into seanmonstar:master Jan 12, 2024
31 checks passed
@davidpdrsn davidpdrsn deleted the remove-sync-bound branch January 12, 2024 18:25
@blarfoon
Copy link

any plans on when this will be officially released to crates.io?

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.

Possible to remove Sync bound in Body::wrap_stream?
3 participants