jonyangx commented on code in PR #2818:
URL: 
https://github.com/apache/incubator-eventmesh/pull/2818#discussion_r1061473344


##########
eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/rebalance/EventmeshRebalanceImpl.java:
##########
@@ -112,7 +112,7 @@ private void doRebalanceByGroup(String cluster, String 
group, String purpose, Ma
         //query distribute data of loacl idc
         Map<String, Integer> clientDistributionMap = 
queryLocalEventMeshDistributeData(cluster, group, purpose,
                 eventMeshMap);
-        if (clientDistributionMap == null || clientDistributionMap.size() == 
0) {
+        if (clientDistributionMap == null || clientDistributionMap.isEmpty()) {

Review Comment:
   ibid



##########
eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/tcp/client/rebalance/EventmeshRebalanceImpl.java:
##########
@@ -124,7 +124,7 @@ private void doRebalanceByGroup(String cluster, String 
group, String purpose, Ma
 
     private void doRebalanceRedirect(String currEventMeshName, String group, 
String purpose, Map<String, String> eventMeshMap,
                                      Map<String, Integer> 
clientDistributionMap) throws Exception {
-        if (clientDistributionMap == null || clientDistributionMap.size() == 
0) {
+        if (clientDistributionMap == null || clientDistributionMap.isEmpty()) {

Review Comment:
   ibid



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