Alonexc opened a new issue, #2664:
URL: https://github.com/apache/incubator-eventmesh/issues/2664

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Enhancement Request
   
   
![image](https://user-images.githubusercontent.com/91315508/209300830-1090e92f-d198-46d2-9533-270a8faf824b.png)
   located at:
   
eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageProcessor.java
 line 87,95
   analysis and explanation:
   This method makes two consecutive calls to the same method, using the same 
constant parameters, on the same instance, without any intervening changes to 
the objects. If this method does not make changes to the object, which it 
appears it doesn't, then making two calls is just a waste. 
   
   
   ### Describe the solution you'd like
   
   These method calls could be combined by assigning the result into a 
temporary variable, and using the variable the second time.
   reference:
   
![image](https://user-images.githubusercontent.com/91315508/209300937-9b9ec968-36e2-49ae-a4f8-e8ba82af24d9.png)
   
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to