xdkxlk commented on code in PR #6568:
URL: https://github.com/apache/rocketmq/pull/6568#discussion_r1175944390


##########
proxy/src/main/java/org/apache/rocketmq/proxy/service/route/MessageQueueSelector.java:
##########
@@ -154,6 +171,82 @@ public AddressableMessageQueue selectOne(boolean 
onlyBroker) {
         return selectOneByIndex(nextIndex, onlyBroker);
     }
 
+    public AddressableMessageQueue selectOneByPipeline(boolean onlyBroker) {
+        if (topicRouteService.getMqFaultStrategy().isSendLatencyFaultEnable() 
&& topicRouteService != null) {

Review Comment:
   TopicRouteService could be null if it is not passed into the constructor.
   Moreover, if the constructor without topicRouteService is no longer used, we 
can delete 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]

Reply via email to