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

   ### Is Your Feature Request Related to a Problem?
   
   在梳理生产者发送消息时发现org.apache.rocketmq.client.impl.producer的sendDefaultImpl方法中
   ![Uploading 1708952834344.png…]()
   resetIndex参数只在selectOneMessageQueue挑选队列时用到,并且对后续无影响。
   
   ### Describe the Solution You'd Like
   
   所以有个想法:可以吧传入selectOneMessageQueue的resetIndex改为times!=0,代码便洁一点,(内存与性能也会好一点点)
   改动如下:
   
![1708953161049](https://github.com/apache/rocketmq/assets/125714719/6e1600c4-5453-450e-9c86-f4a3d4489f20)
   
   
   ### 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