@@ -90,7 +90,7 @@ impl<C> Inbound<C> {
9090 config. proxy . connect . h1_settings ,
9191 config. proxy . connect . h2_settings ,
9292 ) )
93- . push_on_response ( svc:: MapErrLayer :: new ( Into :: into) )
93+ . push_on_service ( svc:: MapErrLayer :: new ( Into :: into) )
9494 . into_new_service ( )
9595 . push_new_reconnect ( config. proxy . connect . backoff )
9696 . check_new_service :: < Http , http:: Request < _ > > ( )
@@ -103,11 +103,11 @@ impl<C> Inbound<C> {
103103 . http_endpoint
104104 . to_layer :: < classify:: Response , _ , _ > ( ) ,
105105 )
106- . push_on_response ( http_tracing:: client (
106+ . push_on_service ( http_tracing:: client (
107107 rt. span_sink . clone ( ) ,
108108 super :: trace_labels ( ) ,
109109 ) )
110- . push_on_response ( http:: BoxResponse :: layer ( ) )
110+ . push_on_service ( http:: BoxResponse :: layer ( ) )
111111 . check_new_service :: < Logical , http:: Request < _ > > ( ) ;
112112
113113 // Attempts to discover a service profile for each logical target (as
@@ -117,10 +117,10 @@ impl<C> Inbound<C> {
117117 . check_new_service :: < Logical , http:: Request < http:: BoxBody > > ( )
118118 // The HTTP stack doesn't use the profile resolution, so drop it.
119119 . push_map_target ( Logical :: from)
120- . push_on_response ( http:: BoxResponse :: layer ( ) )
120+ . push_on_service ( http:: BoxResponse :: layer ( ) )
121121 . push ( profiles:: http:: route_request:: layer (
122122 svc:: proxies ( )
123- . push_on_response ( http:: BoxRequest :: layer ( ) )
123+ . push_on_service ( http:: BoxRequest :: layer ( ) )
124124 // Records per-route metrics.
125125 . push (
126126 rt. metrics
@@ -140,7 +140,7 @@ impl<C> Inbound<C> {
140140 direction : metrics:: Direction :: In ,
141141 }
142142 } )
143- . push_on_response ( http:: BoxResponse :: layer ( ) )
143+ . push_on_service ( http:: BoxResponse :: layer ( ) )
144144 . into_inner ( ) ,
145145 ) )
146146 . push_switch (
@@ -160,7 +160,7 @@ impl<C> Inbound<C> {
160160 Ok ( svc:: Either :: B ( logical) )
161161 } ,
162162 http. clone ( )
163- . push_on_response ( http:: BoxResponse :: layer ( ) )
163+ . push_on_service ( http:: BoxResponse :: layer ( ) )
164164 . check_new_service :: < Logical , http:: Request < _ > > ( )
165165 . into_inner ( ) ,
166166 )
@@ -182,7 +182,7 @@ impl<C> Inbound<C> {
182182 Ok ( profiles:: LookupAddr ( addr. into ( ) ) )
183183 } ) )
184184 . instrument ( |_: & Logical | debug_span ! ( "profile" ) )
185- . push_on_response (
185+ . push_on_service (
186186 svc:: layers ( )
187187 . push ( http:: BoxResponse :: layer ( ) )
188188 . push ( svc:: layer:: mk ( svc:: SpawnReady :: new) ) ,
@@ -191,11 +191,11 @@ impl<C> Inbound<C> {
191191 . push_when_unready (
192192 config. profile_idle_timeout ,
193193 http. clone ( )
194- . push_on_response ( svc:: layer:: mk ( svc:: SpawnReady :: new) )
194+ . push_on_service ( svc:: layer:: mk ( svc:: SpawnReady :: new) )
195195 . into_inner ( ) ,
196196 )
197197 . check_new_service :: < Logical , http:: Request < http:: BoxBody > > ( )
198- . push_on_response (
198+ . push_on_service (
199199 svc:: layers ( )
200200 . push ( rt. metrics . stack . layer ( stack_labels ( "http" , "logical" ) ) )
201201 . push ( svc:: FailFast :: layer (
@@ -205,7 +205,7 @@ impl<C> Inbound<C> {
205205 . push_spawn_buffer ( config. proxy . buffer_capacity ) ,
206206 )
207207 . push_cache ( config. proxy . cache_max_idle_age )
208- . push_on_response (
208+ . push_on_service (
209209 svc:: layers ( )
210210 . push ( http:: Retain :: layer ( ) )
211211 . push ( http:: BoxResponse :: layer ( ) ) ,
0 commit comments