Skip to content

Commit 408f0ed

Browse files
committed
store: Asyncify rollup::Rollup::last_rollup
1 parent 98fd0dd commit 408f0ed

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
@@ -958,7 +958,7 @@ impl DeploymentStore {
958958

959959
let mut conn = self.get_conn()?;
960960
let layout = store.layout(&mut conn, site.cheap_clone()).await?;
961-
layout.last_rollup(&mut conn)
961+
layout.last_rollup(&mut conn).await
962962
}
963963

964964
pub(crate) async fn get_proof_of_indexing(

store/postgres/src/relational.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,11 +1124,11 @@ impl Layout {
11241124
/// for all aggregations, meaning that if some aggregations do not have
11251125
/// an entry with the maximum timestamp that there was just no data for
11261126
/// that interval, but we did try to aggregate at that time.
1127-
pub(crate) fn last_rollup(
1127+
pub(crate) async fn last_rollup(
11281128
&self,
11291129
conn: &mut PgConnection,
11301130
) -> Result<Option<BlockTime>, StoreError> {
1131-
Rollup::last_rollup(&self.rollups, conn)
1131+
Rollup::last_rollup(&self.rollups, conn).await
11321132
}
11331133

11341134
/// Construct `Rolllup` for each of the aggregation mappings

store/postgres/src/relational/rollup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ impl Rollup {
283283
query.execute(conn)
284284
}
285285

286-
pub(crate) fn last_rollup(
286+
pub(crate) async fn last_rollup(
287287
rollups: &[Rollup],
288288
conn: &mut PgConnection,
289289
) -> Result<Option<BlockTime>, StoreError> {

0 commit comments

Comments
 (0)