New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.0]Add gRPC extensibility #5047
base: master
Are you sure you want to change the base?
Conversation
单测再改一下吧 |
这个是不是可以考虑加多一个。Router::GRPC() 的方法,不再用之前的那种做法 |
Router::gRPC 考虑放到新的 PR 里,如果校验 path 还要考虑路由嵌套和注解 |
有空帮看一下 @limingxinleo @PandaLIU-1111 |
* @param mixed $deserialize | ||
* @return \Grpc\StringifyAble[]|Message[]|\swoole_http2_response[] | ||
*/ | ||
public static function parseResponse($response, $deserialize): array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为什么这个移到了 GrpcClient 这里去了,没太理解
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PandaLIU-1111 因为要在这里面抛出 GrpcClientException,这个文件在grpc-client
一种选择是将 GrpcClientException 移入到 grpc 包,当前选择的是下放 parseResponse,而且parseResponse只有客户端需要
af04374
to
28bed53
Compare
#5013