File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
common/src/subgraph_client Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -152,9 +152,12 @@ impl DeploymentClient {
152152 Some ( ( deployment, url) ) => Some (
153153 monitor_deployment_status ( deployment, url)
154154 . await
155- . expect ( & format ! (
156- "Failed to initialize monitoring for deployment {deployment}"
157- ) ) ,
155+ . unwrap_or_else ( |_| {
156+ panic ! (
157+ "Failed to initialize monitoring for deployment `{}`" ,
158+ deployment
159+ )
160+ } ) ,
158161 ) ,
159162 None => None ,
160163 } ,
Original file line number Diff line number Diff line change @@ -41,8 +41,7 @@ pub async fn monitor_deployment_status(
4141 status_url : Url ,
4242) -> anyhow:: Result < Receiver < DeploymentStatus > > {
4343 new_watcher ( Duration :: from_secs ( 30 ) , move || {
44- let status_url = status_url. clone ( ) ;
45- async move { check_deployment_status ( deployment, status_url) . await }
44+ check_deployment_status ( deployment, status_url. clone ( ) )
4645 } )
4746 . await
4847}
You can’t perform that action at this time.
0 commit comments