Skip to content

Conversation

@davidjsonn
Copy link
Contributor

Converts RpcServiceCfg from an enum with two variants to a simple struct.

The OnlyCalls variant was never used in practice (had #[allow(dead_code)] since creation) and only CallsAndSubscriptions was ever instantiated. This change removes the unnecessary complexity of pattern matching and error handling for subscriptions that would never occur.

The IPC server always needs full RPC functionality including subscriptions, so having a "calls only" mode was theoretical overhead without practical benefit.

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

fair,

I think this is coming from ported jsonrpsee ws code, we can change this

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Oct 21, 2025
@mattsse mattsse added this pull request to the merge queue Oct 21, 2025
Merged via the queue into paradigmxyz:main with commit dbceffd Oct 21, 2025
42 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants