Skip to content

Comments

refactor(builder): improve error handling in URL parsing#504

Closed
VolodymyrBg wants to merge 1 commit intoa16z:masterfrom
VolodymyrBg:VolodymyrBg
Closed

refactor(builder): improve error handling in URL parsing#504
VolodymyrBg wants to merge 1 commit intoa16z:masterfrom
VolodymyrBg:VolodymyrBg

Conversation

@VolodymyrBg
Copy link
Contributor

Commit Description:
Replace unwrap() calls with proper error handling in OpStackClientBuilder. This change makes the builder more robust by:

  • Converting consensus_rpc and execution_rpc methods to return Result
  • Using the ? operator for proper error propagation
  • Preventing potential panics from invalid URLs

This improves the reliability and safety of the client builder pattern.

Commit Description:
Replace unwrap() calls with proper error handling in OpStackClientBuilder.
This change makes the builder more robust by:
- Converting consensus_rpc and execution_rpc methods to return Result
- Using the ? operator for proper error propagation
- Preventing potential panics from invalid URLs

This improves the reliability and safety of the client builder pattern.
@VolodymyrBg
Copy link
Contributor Author

@ncitron
Copy link
Collaborator

ncitron commented Mar 7, 2025

We do not accept these types of changes (minor code style) at this time

@ncitron ncitron closed this Mar 7, 2025
@VolodymyrBg VolodymyrBg deleted the VolodymyrBg branch March 25, 2025 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants