This is an automated email from the ASF dual-hosted git repository.

crazyhzm pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.0 by this push:
     new 33e99de  remove meaningless code (#8887)
33e99de is described below

commit 33e99de36e529a951b8fffa70a5d54a4b72f44cd
Author: Wang Chengming <[email protected]>
AuthorDate: Fri Sep 24 11:30:30 2021 +0800

    remove meaningless code (#8887)
---
 .../org/apache/dubbo/rpc/cluster/router/tag/TagDynamicStateRouter.java | 3 +--
 .../org/apache/dubbo/rpc/cluster/router/tag/TagStaticStateRouter.java  | 2 --
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git 
a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/tag/TagDynamicStateRouter.java
 
b/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/tag/TagDynamicStateRouter.java
index 85e7d76..32dd485 100644
--- 
a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/tag/TagDynamicStateRouter.java
+++ 
b/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/tag/TagDynamicStateRouter.java
@@ -110,7 +110,7 @@ public class TagDynamicStateRouter extends 
AbstractStateRouter implements Config
     }
 
     private boolean isForceUseTag(Invocation invocation) {
-        return Boolean.valueOf(invocation.getAttachment(FORCE_USE_TAG, 
url.getParameter(FORCE_USE_TAG, "false")));
+        return Boolean.parseBoolean(invocation.getAttachment(FORCE_USE_TAG, 
url.getParameter(FORCE_USE_TAG, "false")));
     }
 
     @Override
@@ -249,7 +249,6 @@ public class TagDynamicStateRouter extends 
AbstractStateRouter implements Config
                 }
             }
         }
-        pool(invokers);
     }
 
     @Override
diff --git 
a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/tag/TagStaticStateRouter.java
 
b/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/tag/TagStaticStateRouter.java
index 6e29ba7..75e6d70 100644
--- 
a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/tag/TagStaticStateRouter.java
+++ 
b/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/tag/TagStaticStateRouter.java
@@ -137,8 +137,6 @@ public class TagStaticStateRouter extends 
AbstractStateRouter {
         if (CollectionUtils.isEmpty(invokers)) {
             return;
         }
-
-        pool(invokers);
     }
 
 }

Reply via email to