Skip to content

Commit 501f0e4

Browse files
Rename Store.store to Store.inner to reduce stuttering
1 parent fd4e331 commit 501f0e4

File tree

1 file changed

+6
-6
lines changed
  • crates/block-producer/src/store

1 file changed

+6
-6
lines changed

crates/block-producer/src/store/mod.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -121,21 +121,21 @@ impl TryFrom<GetTransactionInputsResponse> for TransactionInputs {
121121
/// Essentially just a thin wrapper around the generated gRPC client which improves type safety.
122122
#[derive(Clone)]
123123
pub struct StoreClient {
124-
store: store_client::ApiClient<Channel>,
124+
inner: store_client::ApiClient<Channel>,
125125
}
126126

127127
impl StoreClient {
128128
/// TODO: this should probably take store connection string and create a connection internally
129129
pub fn new(store: store_client::ApiClient<Channel>) -> Self {
130-
Self { store }
130+
Self { inner: store }
131131
}
132132

133133
/// Returns the latest block's header from the store.
134134
#[instrument(target = "miden-block-producer", skip_all, err)]
135135
pub async fn latest_header(&self) -> Result<BlockHeader, String> {
136136
// TODO: Consolidate the error types returned by the store (and its trait).
137137
let response = self
138-
.store
138+
.inner
139139
.clone()
140140
.get_block_header_by_number(tonic::Request::new(Default::default()))
141141
.await
@@ -164,7 +164,7 @@ impl StoreClient {
164164

165165
let request = tonic::Request::new(message);
166166
let response = self
167-
.store
167+
.inner
168168
.clone()
169169
.get_transaction_inputs(request)
170170
.await
@@ -202,7 +202,7 @@ impl StoreClient {
202202
});
203203

204204
let store_response = self
205-
.store
205+
.inner
206206
.clone()
207207
.get_block_inputs(request)
208208
.await
@@ -217,7 +217,7 @@ impl StoreClient {
217217
let request = tonic::Request::new(ApplyBlockRequest { block: block.to_bytes() });
218218

219219
let _ = self
220-
.store
220+
.inner
221221
.clone()
222222
.apply_block(request)
223223
.await

0 commit comments

Comments
 (0)