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

feat: Make boxed function public #1754

Merged
merged 1 commit into from
Jul 6, 2024

Conversation

tottoto
Copy link
Collaborator

@tottoto tottoto commented Jun 23, 2024

Providing the way to create body gives greater flexibility. This change eliminates the need to use axum's features in the case of h2c example.

@tottoto tottoto force-pushed the make-boxed-function-public branch 2 times, most recently from 58ca572 to 21c781a Compare June 24, 2024 13:46
Copy link
Collaborator

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay to me.

let svc = self
.s
.clone()
.map_request(|req: Request<Incoming>| req.map(tonic::body::boxed));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this really need to specify the type of req?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The body type seems not to be needed. Fixed it.

@tottoto tottoto force-pushed the make-boxed-function-public branch from 21c781a to 9ca6e19 Compare June 26, 2024 10:17
@tottoto tottoto force-pushed the make-boxed-function-public branch from 9ca6e19 to 80e1b19 Compare June 26, 2024 10:18
@tottoto tottoto added this pull request to the merge queue Jul 6, 2024
Merged via the queue into hyperium:master with commit 2cc868f Jul 6, 2024
16 checks passed
@tottoto tottoto deleted the make-boxed-function-public branch July 6, 2024 12:59
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