Skip to content

Commit 98fd0dd

Browse files
committed
store: Asyncify rollup::Rollup::insert
1 parent abc6081 commit 98fd0dd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

store/postgres/src/deployment_store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ impl DeploymentStore {
11661166
)?;
11671167
section.end();
11681168

1169-
layout.rollup(conn, last_rollup, &batch.block_times)?;
1169+
layout.rollup(conn, last_rollup, &batch.block_times).await?;
11701170

11711171
dynds::insert(conn, &site, &batch.data_sources, manifest_idx_and_name).await?;
11721172

store/postgres/src/relational.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ impl Layout {
11861186
///
11871187
/// Changing this would require that we have a complete list of block
11881188
/// numbers and block times which we do not have anywhere in graph-node.
1189-
pub(crate) fn rollup(
1189+
pub(crate) async fn rollup(
11901190
&self,
11911191
conn: &mut PgConnection,
11921192
last_rollup: Option<BlockTime>,
@@ -1238,7 +1238,7 @@ impl Layout {
12381238
break;
12391239
}
12401240
Some(bucket) => {
1241-
rollup.insert(conn, &bucket, *block)?;
1241+
rollup.insert(conn, &bucket, *block).await?;
12421242
}
12431243
}
12441244
}

store/postgres/src/relational/rollup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ impl Rollup {
270270
})
271271
}
272272

273-
pub(crate) fn insert(
273+
pub(crate) async fn insert(
274274
&self,
275275
conn: &mut PgConnection,
276276
bucket: &Range<BlockTime>,

0 commit comments

Comments
 (0)