@@ -5,7 +5,7 @@ use linkerd_app_core::{
55 proxy:: { api_resolve:: Metadata , resolve:: map_endpoint:: MapEndpoint } ,
66 svc, tls,
77 transport:: { self , addrs:: * } ,
8- transport_header, Conditional , Error ,
8+ transport_header, Conditional ,
99} ;
1010use std:: { fmt, net:: SocketAddr } ;
1111
@@ -190,9 +190,7 @@ impl<P: Copy + std::fmt::Debug> MapEndpoint<Concrete<P>, Metadata> for FromMetad
190190// === Outbound ===
191191
192192impl < S > Outbound < S > {
193- pub fn push_endpoint < I > (
194- self ,
195- ) -> Outbound < svc:: BoxNewService < tcp:: Endpoint , svc:: BoxService < I , ( ) , Error > > >
193+ pub fn push_endpoint < I > ( self ) -> Outbound < svc:: BoxNewTcp < tcp:: Endpoint , I > >
196194 where
197195 Self : Clone + ' static ,
198196 S : svc:: Service < tcp:: Connect , Error = io:: Error > + Clone + Send + Sync + Unpin + ' static ,
@@ -220,7 +218,10 @@ pub mod tests {
220218 use super :: * ;
221219 use crate :: test_util:: * ;
222220 use hyper:: { client:: conn:: Builder as ClientBuilder , Body , Request } ;
223- use linkerd_app_core:: svc:: { NewService , Service , ServiceExt } ;
221+ use linkerd_app_core:: {
222+ svc:: { NewService , Service , ServiceExt } ,
223+ Error ,
224+ } ;
224225 use tokio:: time;
225226
226227 /// Tests that socket errors cause HTTP clients to be disconnected.
0 commit comments