Skip to content

Commit 60cfd60

Browse files
committed
store: Asyncify deployment::initialize_block_ptr
1 parent c278f60 commit 60cfd60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

store/postgres/src/deployment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ pub async fn block_ptr(
633633
/// Initialize the subgraph's block pointer. If the block pointer in
634634
/// `latest_ethereum_block` is set already, do nothing. If it is still
635635
/// `null`, set it to `start_ethereum_block` from `subgraph_manifest`
636-
pub fn initialize_block_ptr(conn: &mut PgConnection, site: &Site) -> Result<(), StoreError> {
636+
pub async fn initialize_block_ptr(conn: &mut PgConnection, site: &Site) -> Result<(), StoreError> {
637637
use head as h;
638638
use subgraph_manifest as m;
639639

store/postgres/src/deployment_store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1692,7 +1692,7 @@ impl DeploymentStore {
16921692
// deployed subgraphs so that we respect the 'startBlock' setting
16931693
// the first time the subgraph is started
16941694
conn.transaction_async(|conn| {
1695-
async { crate::deployment::initialize_block_ptr(conn, &dst.site) }.scope_boxed()
1695+
crate::deployment::initialize_block_ptr(conn, &dst.site).scope_boxed()
16961696
})
16971697
.await?;
16981698
Ok(())

0 commit comments

Comments
 (0)