@@ -43,7 +43,7 @@ impl MonzaExecutor for MonzaExecutorV1 {
43
43
/// Executes a block dynamically
44
44
async fn execute_block (
45
45
& self ,
46
- mode : & FinalityMode ,
46
+ mode : FinalityMode ,
47
47
block : ExecutableBlock ,
48
48
) -> Result < ( ) , anyhow:: Error > {
49
49
match mode {
@@ -131,15 +131,15 @@ mod tests {
131
131
132
132
#[ tokio:: test]
133
133
async fn test_execute_opt_block ( ) -> Result < ( ) , anyhow:: Error > {
134
- let ( tx, rx ) = async_channel:: unbounded ( ) ;
135
- let mut executor = MonzaExecutorV1 :: try_from_env ( tx) . await ?;
134
+ let ( tx, _rx ) = async_channel:: unbounded ( ) ;
135
+ let executor = MonzaExecutorV1 :: try_from_env ( tx) . await ?;
136
136
let block_id = HashValue :: random ( ) ;
137
137
let tx = SignatureVerifiedTransaction :: Valid ( Transaction :: UserTransaction (
138
138
create_signed_transaction ( 0 ) ,
139
139
) ) ;
140
140
let txs = ExecutableTransactions :: Unsharded ( vec ! [ tx] ) ;
141
141
let block = ExecutableBlock :: new ( block_id. clone ( ) , txs) ;
142
- executor. execute_block ( & FinalityMode :: Opt , block) . await ?;
142
+ executor. execute_block ( FinalityMode :: Opt , block) . await ?;
143
143
Ok ( ( ) )
144
144
}
145
145
@@ -212,7 +212,7 @@ mod tests {
212
212
SignatureVerifiedTransaction :: Valid ( Transaction :: UserTransaction ( received_transaction) ) ;
213
213
let txs = ExecutableTransactions :: Unsharded ( vec ! [ tx] ) ;
214
214
let block = ExecutableBlock :: new ( block_id. clone ( ) , txs) ;
215
- executor. execute_block ( & FinalityMode :: Opt , block) . await ?;
215
+ executor. execute_block ( FinalityMode :: Opt , block) . await ?;
216
216
217
217
services_handle. abort ( ) ;
218
218
background_handle. abort ( ) ;
@@ -274,7 +274,7 @@ mod tests {
274
274
) ) ;
275
275
let txs = ExecutableTransactions :: Unsharded ( vec ! [ tx] ) ;
276
276
let block = ExecutableBlock :: new ( block_id. clone ( ) , txs) ;
277
- executor. execute_block ( & FinalityMode :: Opt , block) . await ?;
277
+ executor. execute_block ( FinalityMode :: Opt , block) . await ?;
278
278
279
279
blockheight += 1 ;
280
280
committed_blocks. insert (
0 commit comments