Skip to content

Commit 46e2d5d

Browse files
committed
merge mian
1 parent cbd6096 commit 46e2d5d

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

crates/node/src/args.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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")]

crates/node/src/test_utils/reboot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

crates/watcher/tests/indexing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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),

crates/watcher/tests/logs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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),

crates/watcher/tests/reorg.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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),

0 commit comments

Comments
 (0)