3424672656 opened a new issue, #7858: URL: https://github.com/apache/rocketmq/issues/7858
### Before Creating the Enhancement Request - [X] I have confirmed that this should be classified as an enhancement rather than a bug/feature. ### Summary 在梳理生产者发送消息时发现org.apache.rocketmq.client.impl. Producer的sendDefaultImpl方法中 resetIndex参数只在selectOneMessageQueue选择队列时配备,并且对后续无影响。  ### Motivation 提高代码便洁度,友好度 ### Describe the Solution You'd Like 所以有一个想法:可以把下面selectOneMessageQueue方法的参数resetIndex改为times!=0,代码便洁一点,(内存与性能同样好一点点) 如下:  ### 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]
