@@ -1933,7 +1933,7 @@ mod tests {
1933
1933
/// This simulates a RPC method having a different view than when its database transaction was
1934
1934
/// created.
1935
1935
fn persist_block_after_db_tx_creation (
1936
- provider : Arc < BlockchainProvider2 < MockNodeTypesWithDB > > ,
1936
+ provider : BlockchainProvider2 < MockNodeTypesWithDB > ,
1937
1937
block_number : BlockNumber ,
1938
1938
) {
1939
1939
let hook_provider = provider. clone ( ) ;
@@ -3142,7 +3142,6 @@ mod tests {
3142
3142
..Default :: default ( )
3143
3143
} ,
3144
3144
) ?;
3145
- let provider = Arc :: new( provider) ;
3146
3145
3147
3146
$(
3148
3147
// Since data moves for each tried method, need to recalculate everything
@@ -3257,7 +3256,6 @@ mod tests {
3257
3256
..Default :: default ( )
3258
3257
} ,
3259
3258
) ?;
3260
- let provider = Arc :: new( provider) ;
3261
3259
3262
3260
$(
3263
3261
// Since data moves for each tried method, need to recalculate everything
@@ -3383,7 +3381,6 @@ mod tests {
3383
3381
..Default :: default ( )
3384
3382
} ,
3385
3383
) ?;
3386
- let provider = Arc :: new( provider) ;
3387
3384
3388
3385
let mut in_memory_blocks: std:: collections:: VecDeque <_> = in_memory_blocks. into( ) ;
3389
3386
@@ -3685,8 +3682,6 @@ mod tests {
3685
3682
} ,
3686
3683
) ?;
3687
3684
3688
- let provider = Arc :: new ( provider) ;
3689
-
3690
3685
// Old implementation was querying the database first. This is problematic, if there are
3691
3686
// changes AFTER the database transaction is created.
3692
3687
let old_transaction_hash_fn =
@@ -3739,7 +3734,7 @@ mod tests {
3739
3734
correct_transaction_hash_fn(
3740
3735
to_be_persisted_tx. hash( ) ,
3741
3736
provider. canonical_in_memory_state( ) ,
3742
- provider. database. clone ( )
3737
+ provider. database
3743
3738
) ,
3744
3739
Ok ( Some ( to_be_persisted_tx) )
3745
3740
) ;
0 commit comments