-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(rpc): gRPC reflection service support #5583
feat(rpc): gRPC reflection service support #5583
Conversation
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.
LGTM
@tomatoishealthy What does this service do? |
@@ -124,6 +125,10 @@ public void start() { | |||
// add lite fullnode query interceptor | |||
serverBuilder.intercept(liteFnQueryGrpcInterceptor); | |||
|
|||
if (parameter.isRpcReflectionServiceEnable()) { |
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.
Should the parameter rpcReflectionServiceEnable control all the RpcApiServices? It seems to be not flexible to use only one parameter to control all .
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.
gRPC reflection is a tiny feature for a better UX, providing individual parameters for each service is a bit redundant
As the issue claimed, provide a better UX for gRPC APIs |
@@ -284,6 +284,9 @@ node { | |||
# "getaccount", | |||
# "getnowblock2" | |||
# ] | |||
|
|||
# The switch of the reflection service, effective for all gRPC services |
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.
This config path "reflectionService" not match with the Args.
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.
What do you mean by "not match with the Args", more details?
close #5391