File tree 1 file changed +6
-6
lines changed
crates/block-producer/src/store
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -121,21 +121,21 @@ impl TryFrom<GetTransactionInputsResponse> for TransactionInputs {
121
121
/// Essentially just a thin wrapper around the generated gRPC client which improves type safety.
122
122
#[ derive( Clone ) ]
123
123
pub struct StoreClient {
124
- store : store_client:: ApiClient < Channel > ,
124
+ inner : store_client:: ApiClient < Channel > ,
125
125
}
126
126
127
127
impl StoreClient {
128
128
/// TODO: this should probably take store connection string and create a connection internally
129
129
pub fn new ( store : store_client:: ApiClient < Channel > ) -> Self {
130
- Self { store }
130
+ Self { inner : store }
131
131
}
132
132
133
133
/// Returns the latest block's header from the store.
134
134
#[ instrument( target = "miden-block-producer" , skip_all, err) ]
135
135
pub async fn latest_header ( & self ) -> Result < BlockHeader , String > {
136
136
// TODO: Consolidate the error types returned by the store (and its trait).
137
137
let response = self
138
- . store
138
+ . inner
139
139
. clone ( )
140
140
. get_block_header_by_number ( tonic:: Request :: new ( Default :: default ( ) ) )
141
141
. await
@@ -164,7 +164,7 @@ impl StoreClient {
164
164
165
165
let request = tonic:: Request :: new ( message) ;
166
166
let response = self
167
- . store
167
+ . inner
168
168
. clone ( )
169
169
. get_transaction_inputs ( request)
170
170
. await
@@ -202,7 +202,7 @@ impl StoreClient {
202
202
} ) ;
203
203
204
204
let store_response = self
205
- . store
205
+ . inner
206
206
. clone ( )
207
207
. get_block_inputs ( request)
208
208
. await
@@ -217,7 +217,7 @@ impl StoreClient {
217
217
let request = tonic:: Request :: new ( ApplyBlockRequest { block : block. to_bytes ( ) } ) ;
218
218
219
219
let _ = self
220
- . store
220
+ . inner
221
221
. clone ( )
222
222
. apply_block ( request)
223
223
. await
You can’t perform that action at this time.
0 commit comments