File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -429,7 +429,6 @@ impl TestEnvironment {
429429 }
430430 }
431431
432- #[ cfg( test) ]
433432 pub ( crate ) fn base_config ( ) -> ConfigBuilder {
434433 Config :: from_env ( )
435434 . expect ( "can't load base config from environment" )
Original file line number Diff line number Diff line change @@ -464,12 +464,12 @@ pub fn start_background_metrics_webserver(
464464 axum_addr. port( )
465465 ) ;
466466
467- let runtime = context. runtime . clone ( ) ;
468- let metrics_axum_app = runtime
467+ let metrics_axum_app = context
468+ . runtime
469469 . block_on ( build_metrics_axum_app ( context) ) ?
470470 . into_make_service ( ) ;
471471
472- runtime. spawn ( async move {
472+ context . runtime . spawn ( async move {
473473 match tokio:: net:: TcpListener :: bind ( axum_addr)
474474 . await
475475 . context ( "error binding socket for metrics web server" )
Original file line number Diff line number Diff line change @@ -1102,8 +1102,7 @@ mod test {
11021102 utils:: Dependency ,
11031103 web:: { cache:: CachePolicy , encode_url_path} ,
11041104 } ;
1105- use anyhow:: Context ;
1106- use anyhow:: Result ;
1105+ use anyhow:: { Context , Result } ;
11071106 use chrono:: { NaiveDate , Utc } ;
11081107 use kuchikiki:: traits:: TendrilSink ;
11091108 use reqwest:: StatusCode ;
You can’t perform that action at this time.
0 commit comments