You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/04/11 12:29:31 UTC

[GitHub] [rocketmq] drgnchan opened a new issue #2797: polish in TopicConfigManager by replacing with Math.min()

drgnchan opened a new issue #2797:
URL: https://github.com/apache/rocketmq/issues/2797


   before:
   ```java
   int queueNums =
                                   clientDefaultTopicQueueNums > defaultTopicConfig.getWriteQueueNums() ? defaultTopicConfig
                                       .getWriteQueueNums() : clientDefaultTopicQueueNums;
   ```
   
   after:
   ```java
    int queueNums = Math.min(clientDefaultTopicQueueNums, defaultTopicConfig.getWriteQueueNums());
   ```


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] RongtongJin closed issue #2797: polish in TopicConfigManager by replacing with Math.min()

Posted by GitBox <gi...@apache.org>.
RongtongJin closed issue #2797:
URL: https://github.com/apache/rocketmq/issues/2797


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org