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(hyper): address miscellaneous deprecations #3444

Merged
merged 4 commits into from
Dec 11, 2024

Conversation

cratelyn
Copy link
Collaborator

@cratelyn cratelyn commented Dec 11, 2024

this branch addresses a small assortment of calls to deprecated hyper interfaces.

see linkerd/linkerd2#8733.

this is a trivial deprecation fix, for
<linkerd/linkerd2#8733>.

Signed-off-by: katelyn martin <[email protected]>
see <linkerd/linkerd2#8733>.

this updates some test code to use the backported server connection
interfaces.

Signed-off-by: katelyn martin <[email protected]>
this commit addresses uses of deprecated hyper interfaces in the
`linkerd-app-integration` crate.

see <linkerd/linkerd2#8733>.

Signed-off-by: katelyn martin <[email protected]>
@cratelyn cratelyn force-pushed the kate/hyper-1.x-address-tap-server-deprecation branch from 85527ed to 1caf9d0 Compare December 11, 2024 01:19
@cratelyn cratelyn changed the title chore(proxy/tap): address Http deprecation chore(hyper): address miscellaneous deprecations Dec 11, 2024
@cratelyn cratelyn force-pushed the kate/hyper-1.x-address-tap-server-deprecation branch from 701e3a4 to 19dee60 Compare December 11, 2024 01:49
@cratelyn

This comment was marked as resolved.

@cratelyn cratelyn force-pushed the kate/hyper-1.x-address-tap-server-deprecation branch from 19dee60 to 1caf9d0 Compare December 11, 2024 04:43
#[allow(deprecated)] // linkerd/linkerd2#8733
let mut http = hyper::server::conn::Http::new().with_executor(TracingExecutor);
http.http2_only(true);
let http = hyper::server::conn::http2::Builder::new(TracingExecutor);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

an example of what we are doing here: replacing conn::Http values with a conn::http2::Builder or conn::http1::Builder as contextually appropriate.

@cratelyn cratelyn marked this pull request as ready for review December 11, 2024 04:57
@cratelyn cratelyn requested a review from a team as a code owner December 11, 2024 04:57
this was fixed in a previous commit.

Signed-off-by: katelyn martin <[email protected]>
@cratelyn cratelyn merged commit 307dbc4 into main Dec 11, 2024
17 checks passed
@cratelyn cratelyn deleted the kate/hyper-1.x-address-tap-server-deprecation branch December 11, 2024 16:37
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