Repository navigation
Conversation
|
This PR is closed because its description has no Every PR needs an issue that was assigned to you before work started. See CONTRIBUTING.md. |
|
Please create an issue and reopen :) |
|
Hey @hubcio, I can't seem to reopen the issue. Seems like a permission thing. Could you please reopen this. Thanks 🙏 |
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #4571 +/- ##
=============================================
- Coverage 89.49% 79.42% -10.08%
Complexity 1784 1784
=============================================
Files 1330 1278 -52
Lines 284420 199500 -84920
Branches 242863 157945 -84918
=============================================
- Hits 254551 158459 -96092
- Misses 24227 35259 +11032
- Partials 5642 5782 +140
🚀 New features to boost your workflow:
|
haubur
left a comment
There was a problem hiding this comment.
Hi @ByteBaker I like the refactor!
The pipeline failed for unrelated reasons which were fixed in the meantime.
A rebase should make it green.
- Keep transport selection in one place to simplify SDK maintenance. - Replace 55 repeated matches with a private client accessor.
2e550b0 to
55a6003
Compare
|
@haubur thank you! I like deleting code. I'll try more such work in the future, and occasionally feature/fixes as well where I understand the code better. |
Closes #4573
Rationale
There were lots of repeated client matches doing the same thing.
What changed?
ClientWrapper::as_client(...) -> &dyn Clientwhich handles the enum branch-matching within itself.nested_client_wrapper_forwards_results_and_errorsto test the SDK over various transport types.GOOD: >650 net lines deleted.
Local Execution
AI Usage