justxuewei commented on code in PR #2238:
URL: https://github.com/apache/dubbo-go/pull/2238#discussion_r1127264052


##########
registry/polaris/service_discovery.go:
##########
@@ -317,17 +317,20 @@ func (polaris *polarisServiceDiscovery) String() string {
 
 func convertToRegisterInstance(namespace string, instance 
registry.ServiceInstance) *api.InstanceRegisterRequest {
 
-       health := instance.IsHealthy()
-       isolate := instance.IsEnable()
-       ttl := 5
+       var (
+               health      = instance.IsHealthy()
+               isolate     = instance.IsEnable()
+               ttl         = 5
+               protocolVal = protocolForDubboGO

Review Comment:
   Plus, the protocol is not changed in this case. Is it necessary to declare a 
`protocolVal` explicitly?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to