Alanxtl commented on code in PR #3256:
URL: https://github.com/apache/dubbo-go/pull/3256#discussion_r2944187745


##########
cluster/router/polaris/router.go:
##########
@@ -53,14 +53,41 @@ var (
 
 func newPolarisRouter(url *common.URL) (*polarisRouter, error) {
 
-       // get application name from url param
-       applicationName := url.GetParam(constant.ApplicationKey, "")
+       var applicationName string
+       // first try URL param (backward compat)
+       applicationName = url.GetParam(constant.ApplicationKey, "")

Review Comment:
   ```suggestion
        applicationName := applicationName = 
url.GetParam(constant.ApplicationKey, "")
   ```



-- 
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