baomingyu opened a new issue #2329:
URL: https://github.com/apache/incubator-inlong/issues/2329
### Description
inglong dataproxy sdk sender.java code in asyncSendMessage method such as:
`
ConcurrentHashMap<String, QueueObject> tmpQueueMap = new
ConcurrentHashMap<>();
ConcurrentHashMap<String, QueueObject> msgQueueMap =
callbacks.putIfAbsent(client.getChannel(), tmpQueueMap);
if (msgQueueMap == null) {
msgQueueMap = tmpQueueMap;
}
`
can be optimized to like this to reduce the number of invalid objects
`
ConcurrentHashMap<String, QueueObject> msgQueueMap =
callbacks.computeIfAbsent(client.getChannel(), (k) -> new
ConcurrentHashMap<>());
`
### InLong Component
InLong SDK
### Are you willing to submit PR?
- [X] Yes, I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://www.apache.org/foundation/policies/conduct)
--
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]