Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Remove unnecessary clone of chain_dbs_map in init_l1_watcher#2990

Merged
theochap merged 2 commits intoop-rs:mainfrom
sashass1315:chore/remove-unnecessary-clone
Dec 4, 2025
Merged

Remove unnecessary clone of chain_dbs_map in init_l1_watcher#2990
theochap merged 2 commits intoop-rs:mainfrom
sashass1315:chore/remove-unnecessary-clone

Conversation

@sashass1315
Copy link
Copy Markdown
Contributor

  • Eliminated chain_dbs_map.clone() before constructing ReorgHandler in Service::init_l1_watcher().
  • The map is created for the spawned task and not used elsewhere, so it can be moved safely.
  • This reduces allocations and minor overhead without changing behavior.

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 28, 2025

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 84.2%. Comparing base (2f7145f) to head (f62ed44).
⚠️ Report is 8 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
crates/supervisor/service/src/service.rs 0.0% 1 Missing ⚠️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has been inactive for 3 weeks.
It will be closed in 1 week if no further activity occurs.
If you believe this PR should remain open, please add the M-prevent-stale label or leave a comment.

@github-actions github-actions bot added M-stale and removed M-stale labels Nov 19, 2025
@theochap theochap enabled auto-merge December 3, 2025 18:08
@theochap theochap added this pull request to the merge queue Dec 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Dec 3, 2025
@theochap theochap added this pull request to the merge queue Dec 4, 2025
Merged via the queue into op-rs:main with commit d7d4b5d Dec 4, 2025
39 of 46 checks passed
theochap added a commit to ethereum-optimism/optimism that referenced this pull request Dec 10, 2025
…ona#2990)

- Eliminated chain_dbs_map.clone() before constructing ReorgHandler in
Service::init_l1_watcher().
- The map is created for the spawned task and not used elsewhere, so it
can be moved safely.
- This reduces allocations and minor overhead without changing behavior.

Co-authored-by: theo <[email protected]>
theochap added a commit to ethereum-optimism/optimism that referenced this pull request Jan 14, 2026
…ona#2990)

- Eliminated chain_dbs_map.clone() before constructing ReorgHandler in
Service::init_l1_watcher().
- The map is created for the spawned task and not used elsewhere, so it
can be moved safely.
- This reduces allocations and minor overhead without changing behavior.

Co-authored-by: theo <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants