Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove gun specific code from stub to improve adapter flexilibity * remove maybe_return_headers in gun adapter for clairty * refactor parse_response from gun adapter to improve readability * refactor read_stream from gun adapter to improve readability * remove unecessary response parse from inside with condition * add mint adapter and implement draft for open connection * add mint adapter and implement draft for open connection * add simple request and response handlers * add server stream connection handling * refactor server stream consuption to use a short lived genserver * fix disconnect code for connection_process when brutal killing * refactor: use stream response module to handle unary calls * add todo for compressor headers * remove mint adapter code from hello world * add client streaming api for mint adapter * uncomment route_guide test client requests * raise exception for unhandled error cases * refact(client/mint_adapter): add cond to handle the four rpc types to receive data and improve readability * refact(client/mint_adapter): use keyword.get to return headers and trailers * chunk and enqueue requests inside connection process * remove unused functions from state module * fix reference check for response * add consume_error to stream response process for error handling * remove comments from route guide examples * replace case in favor of if/else * fix disconnect match on mint adapter * improve error handling for response stream * refact response module to use guards to return headers or trailers * add factories for channel and stream, remove old factory code to use ex_machina, add tests to cast calls for stream_response * add tests for error and done cast calls * remove empty test * add tests to stream producer for response process * fix dialyzer issue * improve documentation for connection process and add tests for disconnect and handle_call for requests * add tests to stream_body handle_call cases on connection process module * add test for process_request_stream_queue * add error test cases for connection process * add mint adapter to interop tests * add tests to end_stream and cancel callbacks, also improved documentation * fix dialyzer issues * improve documentation and error handling * remove mint from example projects * remove ex_machina dependency * fix: remove ex-machina from test helper * add connection close handling * add connection close checks and tests * remove :queue.fold reference to avoid break on old versions of erlang * send error tuple instead of raise for connect * refact: extract interop test runnet to its module runner * fix: fix code review suggestions * Improve doc on `GRPC.Client.Adapters.Mint.ConnectionProcess`. * Remove `Map.keys/1` in `GRPC.Client.Adapters.Mint.ConnectionProcess.finish_all_pending_requests/1` * Remove if parenthesises. * fix: fix code review suggestions * fix: fix code review suggestions * fix: fix code review suggestions * Expand alias group in `GRPC.Client.Adapters.Mint`. * fix: fix code review suggestions * Expand alias group in interop test. * fix: fix code review suggestions * refactor: extract ref at the function argument * remove unecessary sorts * rename disconnect to remove brutal term * rename bidi_stream atom to bidirectional_stream for clarity * refactor response checks for mint adapter to have a single funtion * refactor response process to use call instead of cast * add pattern match for response calls * unify return headers behavior to match gun behavior * simplify code in favor of use enum module * refactor variable names for clarity * add todo for error handling on response process * add bit lengh for binary manipulation for clarity * rollback cowboy config * unify factories to a single module * add case for chunk_body to avoid raise * Update interop/lib/interop/client.ex Co-authored-by: Paulo Valente <[email protected]> * Update interop/lib/interop/client.ex Co-authored-by: Paulo Valente <[email protected]> * improve documentation for GRPC.Stub.recv * remove doc for GRPC.Stub.call/5 * make connection status check a private function * apply PR comments * apply missing PR comments * Update lib/grpc/stub.ex Co-authored-by: Paulo Valente <[email protected]> * anotate stream response process for genserver callback functions * Update lib/grpc/client/adapters/mint/connection_process/connection_process.ex Co-authored-by: Paulo Valente <[email protected]> * improve error messages * Apply suggestions from code review Co-authored-by: Thanabodee Charoenpiriyakij <[email protected]> Co-authored-by: Paulo Valente <[email protected]>
- Loading branch information