Skip to content

Commit 5614aee

Browse files
authored
inbound: Simplify GatewayIo type (#1414)
Since the legacy gateway mode has been removed from the proxy, we no longer need to support multiple I/O types for the gateway. This change drops the unused I/O variant from the GatewayIo type.
1 parent 9b3c968 commit 5614aee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

linkerd/app/inbound/src/direct.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub struct ClientInfo {
5050

5151
type TlsIo<I> = tls::server::Io<identity::ServerIo<tls::server::DetectIo<I>>, I>;
5252
type FwdIo<I> = SensorIo<io::PrefixedIo<TlsIo<I>>>;
53-
pub type GatewayIo<I> = io::EitherIo<FwdIo<I>, SensorIo<TlsIo<I>>>;
53+
pub type GatewayIo<I> = FwdIo<I>;
5454

5555
#[derive(Clone)]
5656
struct TlsParams {
@@ -167,7 +167,6 @@ impl<N> Inbound<N> {
167167
// HTTP detection is not necessary in this case, since the transport
168168
// header indicates the connection's HTTP version.
169169
svc::stack(gateway.clone())
170-
.push_on_service(svc::MapTargetLayer::new(io::EitherIo::Left))
171170
.push(transport::metrics::NewServer::layer(
172171
rt.metrics.proxy.transport.clone(),
173172
))

0 commit comments

Comments
 (0)