File tree Expand file tree Collapse file tree 5 files changed +8
-6
lines changed
Expand file tree Collapse file tree 5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,9 @@ impl ScrollRollupNodeConfig {
369369 type L1WatcherMockOpt = Option < std:: convert:: Infallible > ;
370370
371371 let ( _l1_watcher_mock, l1_watcher_handle) : ( L1WatcherMockOpt , Option < L1WatcherHandle > ) =
372- if let Some ( provider) = l1_provider. filter ( |_| !self . test_args . test || self . blob_provider_args . anvil_url . is_some ( ) ) {
372+ if let Some ( provider) = l1_provider
373+ . filter ( |_| !self . test_args . test || self . blob_provider_args . anvil_url . is_some ( ) )
374+ {
373375 tracing:: info!( target: "scroll::node::args" , ?l1_block_startup_info, "Starting L1 watcher" ) ;
374376
375377 #[ cfg( feature = "test-utils" ) ]
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ impl TestFixture {
219219 as Arc < dyn ScrollEngineApi + Send + Sync + ' static > ;
220220
221221 // Step 4: Get necessary handles from the new node
222- let l1_watcher_tx = new_node. inner . add_ons_handle . l1_watcher_tx . clone ( ) ;
222+ let l1_watcher_handle = new_node. inner . add_ons_handle . l1_watcher_handle . clone ( ) ;
223223 let rollup_manager_handle = new_node. inner . add_ons_handle . rollup_manager_handle . clone ( ) ;
224224
225225 // Step 5: Restore ForkchoiceState from persisted ChainOrchestrator status
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ async fn test_should_not_index_latest_block_multiple_times() -> eyre::Result<()>
5959 ) ;
6060
6161 // spawn the watcher and verify received notifications are consistent.
62- let ( _ , mut l1_watcher) = L1Watcher :: spawn (
62+ let l1_watcher = L1Watcher :: spawn (
6363 mock_provider,
6464 L1BlockStartupInfo :: None ,
6565 Arc :: new ( config) ,
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ async fn test_should_not_miss_logs_on_reorg() -> eyre::Result<()> {
6464 ) ;
6565
6666 // spawn the watcher and verify received notifications are consistent.
67- let ( _ , mut l1_watcher) = L1Watcher :: spawn (
67+ let l1_watcher = L1Watcher :: spawn (
6868 mock_provider,
6969 L1BlockStartupInfo :: None ,
7070 Arc :: new ( config) ,
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ async fn test_should_detect_reorg() -> eyre::Result<()> {
7272 ) ;
7373
7474 // spawn the watcher and verify received notifications are consistent.
75- let ( _ , mut l1_watcher) = L1Watcher :: spawn (
75+ let l1_watcher = L1Watcher :: spawn (
7676 mock_provider,
7777 L1BlockStartupInfo :: None ,
7878 Arc :: new ( config) ,
@@ -180,7 +180,7 @@ async fn test_should_fetch_gap_in_unfinalized_blocks() -> eyre::Result<()> {
180180 ) ;
181181
182182 // spawn the watcher and verify received notifications are consistent.
183- let ( _ , mut l1_watcher) = L1Watcher :: spawn (
183+ let l1_watcher = L1Watcher :: spawn (
184184 mock_provider,
185185 L1BlockStartupInfo :: None ,
186186 Arc :: new ( config) ,
You can’t perform that action at this time.
0 commit comments