File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use ic_bn_lib::ic_agent::agent::{
1414} ;
1515use ic_bn_lib_common:: { principal, traits:: Healthy } ;
1616use tokio:: time:: { sleep, timeout} ;
17- use tracing:: info;
17+ use tracing:: { info, warn } ;
1818use url:: Url ;
1919
2020use crate :: {
@@ -98,13 +98,16 @@ pub async fn setup_route_provider(
9898 } ;
9999
100100 let wrapper = RouteProviderWrapper :: new ( route_provider. clone ( ) ) ;
101- timeout ( Duration :: from_secs ( 120 ) , async {
101+ if timeout ( Duration :: from_secs ( 120 ) , async {
102102 while !wrapper. healthy ( ) {
103103 sleep ( Duration :: from_secs ( 1 ) ) . await ;
104104 }
105105 } )
106106 . await
107- . map_err ( |_| anyhow ! ( "Route provider did not become healthy within 2 minutes" ) ) ?;
107+ . is_err ( )
108+ {
109+ warn ! ( "Route provider did not become healthy within 2 minutes, continuing anyway" ) ;
110+ }
108111
109112 Ok ( route_provider)
110113}
You can’t perform that action at this time.
0 commit comments