Commit b791831
authored
refactor(builder): improve error handling in URL parsing
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.1 parent e367fc3 commit b791831
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments