nsivarajan commented on code in PR #60921:
URL: https://github.com/apache/doris/pull/60921#discussion_r3340277953


##########
fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/manager/QueryProfileAction.java:
##########
@@ -196,7 +196,7 @@ public Object queryInfo(HttpServletRequest request, 
HttpServletResponse response
         // add node information
         for (List<String> query : queries) {
             query.set(1, 
NetUtils.getHostPortInAccessibleFormat(Env.getCurrentEnv().getSelfNode().getHost(),
-                    Config.http_port));
+                    Config.enable_https ? Config.https_port : 
Config.http_port));

Review Comment:
   Thanks @morningman , Good suggestion. I didn't realise such many ternary 
used. Now handled with HttpURLUtil.getHttpPort() method as suggested.



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