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

Use UnsyncBoxBody instead of BoxBody #860

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Use UnsyncBoxBody instead of BoxBody #860

merged 1 commit into from
Feb 10, 2025

Conversation

paulgb
Copy link
Member

@paulgb paulgb commented Feb 9, 2025

We currently use BoxBody extensively, which requires the body to be Sync, even though we don't actually rely on the Body being Sync in our code.

Axum uses UnsyncBoxBody instead, which is like BoxBody but allows the contained body to be !Sync. So when we get a Body from Axum, we can't currently pass it to dynamic_proxy because it may not be Sync, even though our code doesn't actually care if it is Sync.

This replaces our use of BoxBody with UnsyncBoxBody.

Copy link

vercel bot commented Feb 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plane ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 9, 2025 8:34pm

@paulgb paulgb merged commit aa7e09f into main Feb 10, 2025
6 checks passed
@paulgb paulgb deleted the paulgb/use-unsync-body branch February 10, 2025 16: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