@@ -15,10 +15,7 @@ mod tests {
1515 use init4_bin_base:: utils:: calc:: SlotCalculator ;
1616 use signet_sim:: { SimCache , SimItem } ;
1717 use signet_types:: constants:: SignetSystemConstants ;
18- use std:: {
19- sync:: Arc ,
20- time:: { Duration , Instant , SystemTime , UNIX_EPOCH } ,
21- } ;
18+ use std:: time:: { Duration , Instant , SystemTime , UNIX_EPOCH } ;
2219 use tokio:: { sync:: mpsc:: unbounded_channel, time:: timeout} ;
2320
2421 /// Tests the `handle_build` method of the `Simulator`.
@@ -108,16 +105,16 @@ mod tests {
108105 // Create a rollup provider
109106 let ru_provider = RootProvider :: < Ethereum > :: new_http ( anvil_instance. endpoint_url ( ) ) ;
110107
111- let sim = Arc :: new ( Simulator :: new ( & config, ru_provider. clone ( ) , config. slot_calculator ) ) ;
108+ let sim = Simulator :: new ( & config, ru_provider. clone ( ) , config. slot_calculator ) ;
112109
113110 // Create a shared sim cache
114111 let sim_cache = SimCache :: new ( ) ;
115112
116113 // Create a sim cache and start filling it with items
117- sim. clone ( ) . spawn_cache_tasks ( tx_receiver, bundle_receiver, sim_cache. clone ( ) ) ;
114+ sim. spawn_cache_tasks ( tx_receiver, bundle_receiver, sim_cache. clone ( ) ) ;
118115
119116 // Finally, Kick off the block builder task.
120- sim. clone ( ) . spawn_simulator_task ( constants, sim_cache. clone ( ) , block_sender) ;
117+ sim. spawn_simulator_task ( constants, sim_cache. clone ( ) , block_sender) ;
121118
122119 // Feed in transactions to the tx_sender and wait for the block to be simulated
123120 let tx_1 = new_signed_tx ( & test_key_0, 0 , U256 :: from ( 1_f64 ) , 11_000 ) . unwrap ( ) ;
0 commit comments