-
Notifications
You must be signed in to change notification settings - Fork 929
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
remove reflect in grpc server #1200
Conversation
Codecov Report
@@ Coverage Diff @@
## 3.0 #1200 +/- ##
==========================================
- Coverage 59.53% 56.04% -3.49%
==========================================
Files 259 269 +10
Lines 12737 12827 +90
==========================================
- Hits 7583 7189 -394
- Misses 4199 4741 +542
+ Partials 955 897 -58
Continue to review full report at Codecov.
|
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
@@ -134,18 +136,12 @@ func waitGrpcExporter(providerServices map[string]*config.ServiceConfig) { | |||
func registerService(providerServices map[string]*config.ServiceConfig, server *grpc.Server) { | |||
for key, providerService := range providerServices { | |||
service := config.GetProviderService(key) | |||
|
|||
ds, ok := service.(DubboGrpcService) | |||
if !ok { |
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.
Is 'ds' may be nil ?
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.
Is 'service' may be nil ?
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.
service
check exist: https://github.com/apache/dubbo-go/blob/master/config/config_loader.go#L259-L264.
What this PR does:
SetProxyImpl
in grpc serverDoes this PR introduce a user-facing change?: