Skip to content

Commit 607fd1e

Browse files
authored
Fix build. (#3739)
## Motivation #3722 and #3729 were merged without rebasing, breaking the build. ## Proposal Move `block_exporter_context` to the right `impl`. ## Test Plan CI ## Release Plan - Nothing to do / These changes follow the usual release cycle. ## Links - [reviewer checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
1 parent 65a30a2 commit 607fd1e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

linera-storage/src/db_storage.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,15 @@ where
892892
}
893893
Ok(blob_ids)
894894
}
895+
896+
pub async fn block_exporter_context(
897+
&self,
898+
block_exporter_id: u32,
899+
) -> Result<ViewContext<u32, Store>, ViewError> {
900+
let root_key = bcs::to_bytes(&BaseKey::BlockExporterState(block_exporter_id))?;
901+
let store = self.store.clone_with_root_key(&root_key)?;
902+
Ok(ViewContext::create_root_context(store, block_exporter_id).await?)
903+
}
895904
}
896905

897906
impl<Store> DbStorage<Store, WallClock>
@@ -915,15 +924,6 @@ where
915924
}
916925
Ok(chain_ids)
917926
}
918-
919-
pub async fn block_exporter_context(
920-
&self,
921-
block_exporter_id: u32,
922-
) -> Result<ViewContext<u32, Store>, ViewError> {
923-
let root_key = bcs::to_bytes(&BaseKey::BlockExporterState(block_exporter_id))?;
924-
let store = self.store.clone_with_root_key(&root_key)?;
925-
Ok(ViewContext::create_root_context(store, block_exporter_id).await?)
926-
}
927927
}
928928

929929
#[cfg(with_testing)]

0 commit comments

Comments
 (0)