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

feat(node/service): removed unbounded channels in kona-service actors and replaced with bounded ones#2045

Merged
clabby merged 2 commits intoop-rs:mainfrom
PoulavBhowmick03:service_bounded_channels
Jun 9, 2025
Merged

feat(node/service): removed unbounded channels in kona-service actors and replaced with bounded ones#2045
clabby merged 2 commits intoop-rs:mainfrom
PoulavBhowmick03:service_bounded_channels

Conversation

@PoulavBhowmick03
Copy link
Contributor

Fixes #1993

Copilot AI review requested due to automatic review settings June 8, 2025 08:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR replaces unbounded mpsc channels with bounded ones in several actor modules, ensuring that channel send operations now await their completion.

  • Replace unbounded channels with their bounded counterparts and update send calls to be asynchronous.
  • Update tests and supporting actor logic to align with the new bounded channel semantics.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
crates/supervisor/service/src/actors/l1_watcher_rpc.rs Updated channel type and replaced synchronous send with asynchronous send awaiting the result.
crates/node/service/src/service/validator.rs Replaced unbounded channels with bounded channels for consistency.
crates/node/service/src/actors/runtime.rs Changed channel type in runtime actor and updated send calls to be asynchronous.
crates/node/service/src/actors/network.rs Updated channel types and adjusted send calls to use .await for async behavior.
crates/node/service/src/actors/engine/actor.rs Updated channel types and ensured send calls await proper completion.
crates/node/service/src/actors/derivation.rs Replaced unbounded channels with bounded ones and updated send operations accordingly.

@codecov
Copy link

codecov bot commented Jun 8, 2025

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.9%. Comparing base (9110f2f) to head (b2d9dcd).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...es/supervisor/service/src/actors/l1_watcher_rpc.rs 80.0% 1 Missing ⚠️

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@clabby clabby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, thank you.

One nit along with Copilot's, then glad to approve :)

@PoulavBhowmick03
Copy link
Contributor Author

@clabby made the changes

Copy link
Contributor

@clabby clabby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, pending CI. Thanks!

@clabby clabby enabled auto-merge June 9, 2025 13:44
Copy link
Collaborator

@dhyaniarun1993 dhyaniarun1993 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. lgtm

@clabby clabby added this pull request to the merge queue Jun 9, 2025
Merged via the queue into op-rs:main with commit 936845b Jun 9, 2025
21 of 23 checks passed
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Dec 10, 2025
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Jan 14, 2026
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.

feat(node/service): Use bounded channels

4 participants