xiaoheng1 commented on a change in pull request #8492:
URL: https://github.com/apache/dubbo/pull/8492#discussion_r688370340



##########
File path: 
dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/support/AbstractClusterInvoker.java
##########
@@ -333,10 +351,15 @@ protected LoadBalance initLoadBalance(List<Invoker<T>> 
invokers, Invocation invo
 
 
     private void setContext(Invoker<T> invoker) {
+        setContext(invoker, null);
+    }
+
+    private void setContext(Invoker<T> invoker, URL consumerUrl) {
         RpcContext context = RpcContext.getServiceContext();
         context.setInvoker(invoker)
-                .setRemoteAddress(invoker.getUrl().getHost(), 
invoker.getUrl().getPort())
-                
.setRemoteApplicationName(invoker.getUrl().getRemoteApplication());
+            .setRemoteAddress(invoker.getUrl().getHost(), 
invoker.getUrl().getPort())
+            .setRemoteApplicationName(invoker.getUrl().getRemoteApplication())

Review comment:
       ok,i will remove it.




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