3424672656 opened a new issue, #7857:
URL: https://github.com/apache/rocketmq/issues/7857

   ### Is Your Feature Request Related to a Problem?
   
   在整理生产者发送消息时发现org.apache.rocketmq.client.impl. Producer的sendDefaultImpl方法中 
resetIndex参数只在selectOneMessageQueue选择队列时配备,并且对后续无影响。
   
![image](https://github.com/apache/rocketmq/assets/125714719/7a8a289a-fc0d-4d1f-ad95-bcd88568dae0)
   
   
   ### Describe the Solution You'd Like
   
   所以有一个想法:可以吧确定selectOneMessageQueue的resetIndextimes!=0,代码便洁一点,(内存与性能同样好一点点)
   如下:
   
![image](https://github.com/apache/rocketmq/assets/125714719/9555f1a3-adb5-47c2-8069-70fc12ad11f4)
   
   
   ### Describe Alternatives You've Considered
   
   代码美观的同时稍微节省了它的if判断以及内存开销
   
   ### Additional Context
   
   _No response_


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