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(client): remove common::Exec::Default #3135

Merged
merged 3 commits into from
Jan 31, 2023

Conversation

dswij
Copy link
Member

@dswij dswij commented Jan 30, 2023

Closes #3128

This PR removes Exec::Default so that we avoid panicking by asking users to provide Executor right away. Exec::Default serves no purpose after #2975.

Also refactors hyper::client::conn::Http2::Builder::new as part of the removal.

This commit removes `common::Exec::Default` that just panics when used. We are
removing `tokio`, leaving `Exec::Default` with no implementation and
panics when `Exec::execute` is called.

Since `Exec::Default` has no purpose, it is being removed and user
should now provide an implementation of executor.

BREAKING CHANGE:  remove `hyepr::common::Exec::Default` and refactor
`hyper::client::conn::Http2::Builder::new`
@seanmonstar seanmonstar merged commit 8068aa0 into hyperium:master Jan 31, 2023
@seanmonstar
Copy link
Member

Excellent work, thank you so much! 🙏

@dswij dswij deleted the issue-3128 branch February 1, 2023 05:21
0xE282B0 pushed a commit to 0xE282B0/hyper that referenced this pull request Jan 12, 2024
This commit removes `common::Exec::Default` that just panics when used. We are
removing `tokio`, leaving `Exec::Default` with no implementation and
panics when `Exec::execute` is called.

Since `Exec::Default` has no purpose, it is being removed and user
should now provide an implementation of executor.

Closes hyperium#3128 

BREAKING CHANGE:  `hyper::client::conn::Http2::Builder::new` now requires an executor argument.
0xE282B0 pushed a commit to 0xE282B0/hyper that referenced this pull request Jan 16, 2024
This commit removes `common::Exec::Default` that just panics when used. We are
removing `tokio`, leaving `Exec::Default` with no implementation and
panics when `Exec::execute` is called.

Since `Exec::Default` has no purpose, it is being removed and user
should now provide an implementation of executor.

Closes hyperium#3128

BREAKING CHANGE:  `hyper::client::conn::Http2::Builder::new` now requires an executor argument.

Signed-off-by: Sven Pfennig <[email protected]>
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.

http2::handshake() is useless in 1.0 given no default executor
2 participants