@@ -267,6 +267,7 @@ impl DeploymentStore {
267267 let layout = self . layout ( & mut conn, site. clone ( ) ) . await ?;
268268 Ok (
269269 detail:: deployment_entity ( & mut conn, & site, & layout. input_schema )
270+ . await
270271 . with_context ( || format ! ( "Deployment details not found for {}" , site. deployment) ) ?,
271272 )
272273 }
@@ -551,7 +552,7 @@ impl DeploymentStore {
551552 ids : Vec < String > ,
552553 ) -> Result < Vec < DeploymentDetail > , StoreError > {
553554 let conn = & mut * self . get_conn ( ) . await ?;
554- detail:: deployment_details ( conn, ids)
555+ detail:: deployment_details ( conn, ids) . await
555556 }
556557
557558 pub async fn deployment_details_for_id (
@@ -560,15 +561,15 @@ impl DeploymentStore {
560561 ) -> Result < DeploymentDetail , StoreError > {
561562 let id = DeploymentId :: from ( locator. clone ( ) ) ;
562563 let conn = & mut * self . get_conn ( ) . await ?;
563- detail:: deployment_details_for_id ( conn, & id)
564+ detail:: deployment_details_for_id ( conn, & id) . await
564565 }
565566
566567 pub ( crate ) async fn deployment_statuses (
567568 & self ,
568569 sites : & [ Arc < Site > ] ,
569570 ) -> Result < Vec < status:: Info > , StoreError > {
570571 let conn = & mut * self . get_conn ( ) . await ?;
571- detail:: deployment_statuses ( conn, sites)
572+ detail:: deployment_statuses ( conn, sites) . await
572573 }
573574
574575 pub ( crate ) async fn deployment_exists_and_synced (
@@ -1005,7 +1006,7 @@ impl DeploymentStore {
10051006 if latest_block_ptr. number < block. number {
10061007 // If a subgraph has failed deterministically then any blocks past head
10071008 // should return the same POI
1008- let fatal_error = ErrorDetail :: fatal ( conn, & site. deployment ) ?;
1009+ let fatal_error = ErrorDetail :: fatal ( conn, & site. deployment ) . await ?;
10091010 block_ptr = match fatal_error {
10101011 Some ( se) => TryInto :: < SubgraphError > :: try_into ( se) ?
10111012 . block_ptr
@@ -1732,7 +1733,7 @@ impl DeploymentStore {
17321733 conn. transaction_async ( |conn| {
17331734 async {
17341735 // We'll only unfail subgraphs that had fatal errors
1735- let subgraph_error = match ErrorDetail :: fatal ( conn, deployment_id) ? {
1736+ let subgraph_error = match ErrorDetail :: fatal ( conn, deployment_id) . await ? {
17361737 Some ( fatal_error) => fatal_error,
17371738 // If the subgraph is not failed then there is nothing to do.
17381739 None => return Ok ( UnfailOutcome :: Noop ) ,
@@ -1828,7 +1829,7 @@ impl DeploymentStore {
18281829
18291830 conn. transaction_async ( |conn| async {
18301831 // We'll only unfail subgraphs that had fatal errors
1831- let subgraph_error = match ErrorDetail :: fatal ( conn, deployment_id) ? {
1832+ let subgraph_error = match ErrorDetail :: fatal ( conn, deployment_id) . await ? {
18321833 Some ( fatal_error) => fatal_error,
18331834 // If the subgraph is not failed then there is nothing to do.
18341835 None => return Ok ( UnfailOutcome :: Noop ) ,
0 commit comments