@@ -334,21 +334,17 @@ impl Config {
334334 . check_service :: < Concrete < HttpEndpoint > > ( ) ;
335335
336336 let http_profile_route_proxy = svc:: proxies ( )
337- . check_new_clone_service :: < dst:: Route > ( )
338337 . push ( metrics. http_route_actual . into_layer :: < classify:: Response > ( ) )
339338 // Sets an optional retry policy.
340339 . push ( retry:: layer ( metrics. http_route_retry ) )
341- . check_new_clone_service :: < dst:: Route > ( )
342340 // Sets an optional request timeout.
343341 . push ( http:: MakeTimeoutLayer :: default ( ) )
344- . check_new_clone_service :: < dst:: Route > ( )
345342 // Records per-route metrics.
346343 . push ( metrics. http_route . into_layer :: < classify:: Response > ( ) )
347- . check_new_clone_service :: < dst:: Route > ( )
348344 // Sets the per-route response classifier as a request
349345 // extension.
350346 . push ( classify:: Layer :: new ( ) )
351- . check_new_clone_service :: < dst:: Route > ( ) ;
347+ . check_new_clone :: < dst:: Route > ( ) ;
352348
353349 // Routes `Logical` targets to a cached `Profile` stack, i.e. so that profile
354350 // resolutions are shared even as the type of request may vary.
@@ -388,7 +384,7 @@ impl Config {
388384 . instrument ( |_: & Profile | info_span ! ( "profile" ) )
389385 . check_make_service :: < Profile , Logical < HttpEndpoint > > ( )
390386 . push ( router:: Layer :: new ( |( ) | ProfilePerTarget ) )
391- . check_new_service_routes :: < ( ) , Logical < HttpEndpoint > > ( )
387+ . check_new_service :: < ( ) , Logical < HttpEndpoint > > ( )
392388 . new_service ( ( ) ) ;
393389
394390 // Routes requests to their logical target.
@@ -487,7 +483,7 @@ impl Config {
487483 . push_make_ready ( )
488484 . push_timeout ( dispatch_timeout)
489485 . push ( router:: Layer :: new ( LogicalPerRequest :: from) )
490- . check_new_service :: < listen:: Addrs > ( )
486+ . check_new_service :: < listen:: Addrs , http :: Request < _ > > ( )
491487 // Used by tap.
492488 . push_http_insert_target ( )
493489 . push_on_response (
@@ -500,7 +496,7 @@ impl Config {
500496 . instrument (
501497 |addrs : & listen:: Addrs | info_span ! ( "source" , target. addr = %addrs. target_addr( ) ) ,
502498 )
503- . check_new_service :: < listen:: Addrs > ( )
499+ . check_new_service :: < listen:: Addrs , http :: Request < _ > > ( )
504500 . into_inner ( )
505501 . into_make_service ( ) ;
506502
0 commit comments