@@ -15,10 +15,7 @@ mod tests {
15
15
use init4_bin_base:: utils:: calc:: SlotCalculator ;
16
16
use signet_sim:: { SimCache , SimItem } ;
17
17
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 } ;
22
19
use tokio:: { sync:: mpsc:: unbounded_channel, time:: timeout} ;
23
20
24
21
/// Tests the `handle_build` method of the `Simulator`.
@@ -108,16 +105,16 @@ mod tests {
108
105
// Create a rollup provider
109
106
let ru_provider = RootProvider :: < Ethereum > :: new_http ( anvil_instance. endpoint_url ( ) ) ;
110
107
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 ) ;
112
109
113
110
// Create a shared sim cache
114
111
let sim_cache = SimCache :: new ( ) ;
115
112
116
113
// 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 ( ) ) ;
118
115
119
116
// 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) ;
121
118
122
119
// Feed in transactions to the tx_sender and wait for the block to be simulated
123
120
let tx_1 = new_signed_tx ( & test_key_0, 0 , U256 :: from ( 1_f64 ) , 11_000 ) . unwrap ( ) ;
0 commit comments