gavinchou commented on code in PR #65551:
URL: https://github.com/apache/doris/pull/65551#discussion_r3578439740


##########
fe/fe-core/src/main/java/org/apache/doris/common/util/HttpURLUtil.java:
##########
@@ -47,9 +49,11 @@ public static HttpURLConnection 
getConnectionWithNodeIdent(String request) throw
 
             // Must use Env.getServingEnv() instead of getCurrentEnv(),
             // because here we need to obtain selfNode through the official 
service catalog.
-            HostInfo selfNode = Env.getServingEnv().getSelfNode();
+            Env env = Env.getServingEnv();
+            HostInfo selfNode = env.getSelfNode();

Review Comment:
   why change this? it doesnt make scense to make one-line into 2.



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