Repository navigation
Feature/simple api updates - #139
Conversation
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #139 +/- ##
==========================================
+ Coverage 92.47% 92.72% +0.24%
==========================================
Files 8 8
Lines 930 948 +18
==========================================
+ Hits 860 879 +19
+ Misses 70 69 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@johroj I read over the interface changes and it looks good to me. Having a clanker review now as well, especially wrt. to the error handling. |
Thanks. This is something that needs to be done right from the start, so don't hesitate to ask if you think something could be done different. |
|
@csvance Based on your suggestion I added @inline function grpc_request_exception(req::gRPCRequest)::Union{Nothing, Exception}
...
endwhich reimplements the behavior that was previously in In addition to refactoring Regarding the check of |
|
@johroj I'd be ok with merging this and fixing my comment in a follow up just to keep things moving forward on master. Then we could also merge in the docs and things like that. I managed to reproduce the behavior, but I don't think it's something that would happen frequently without intentionally trying to create the exact conditions needed. |
This contains some fixes that were previously part of the documentation PR. Moving them to a separate PR to simplify review. Once merged, we can rebase the documentation PR.
Base.iteratefor simple handling of unknown-length responses. When working on the docs, I noticed that this could be handled better and that there should be canonical examples.Base.wait(rpc). It no longer throws when request was closed error-free, allowing it to work as a primitive for implementing a custom iterate (for e.g. also supporting partial decoding, whichiteratedoes not support).gRPCClient