Skip to content

Commit cc70c37

Browse files
committed
chore(stack): upgrade to hyper 1.x
Signed-off-by: katelyn martin <[email protected]>
1 parent 70fdd00 commit cc70c37

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2538,6 +2538,7 @@ name = "linkerd-stack"
25382538
version = "0.1.0"
25392539
dependencies = [
25402540
"futures",
2541+
"hyper",
25412542
"linkerd-error",
25422543
"linkerd-tracing",
25432544
"parking_lot",

linkerd/stack/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ test-util = []
1414

1515
[dependencies]
1616
futures = { version = "0.3", default-features = false }
17+
hyper = { workspace = true }
1718
linkerd-error = { path = "../error" }
1819
parking_lot = "0.12"
1920
pin-project = "1"

linkerd/stack/src/connect.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use crate::{layer, Service};
22
use futures::prelude::*;
33
use linkerd_error::Error;
44
use std::task::{Context, Poll};
5-
use tokio::io::{AsyncRead, AsyncWrite};
65

76
/// A helper `Service` that drops metadata from a `MakeConnection`
87
#[derive(Clone, Debug)]
@@ -18,7 +17,7 @@ pub struct MakeConnectionService<S>(S);
1817
/// be used by consumers of these services.
1918
pub trait MakeConnection<T> {
2019
/// An I/O type that represents a connection to the remote endpoint.
21-
type Connection: AsyncRead + AsyncWrite;
20+
type Connection: hyper::rt::Read + hyper::rt::Write;
2221

2322
/// Metadata associated with the established connection.
2423
type Metadata;
@@ -54,7 +53,7 @@ impl<T, S, I, M> MakeConnection<T> for S
5453
where
5554
S: Service<T, Response = (I, M)>,
5655
S::Error: Into<Error>,
57-
I: AsyncRead + AsyncWrite,
56+
I: hyper::rt::Read + hyper::rt::Write,
5857
{
5958
type Connection = I;
6059
type Metadata = M;

0 commit comments

Comments
 (0)