mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-24 16:04:00 +08:00
[ISSUE #3949] Fix batch sendMessageAsync
This commit is contained in:
@@ -190,8 +190,10 @@ public class MQClientAPIExt extends MQClientAPIImpl {
|
||||
requestHeader.setBatch(true);
|
||||
MessageBatch msgBatch = MessageBatch.generateFromList(msgList);
|
||||
MessageClientIDSetter.setUniqID(msgBatch);
|
||||
msgBatch.setBody(msgBatch.encode());
|
||||
byte[] body = msgBatch.encode();
|
||||
msgBatch.setBody(body);
|
||||
|
||||
request.setBody(body);
|
||||
this.getRemotingClient().invokeAsync(brokerAddr, request, timeoutMillis, responseFuture -> {
|
||||
RemotingCommand response = responseFuture.getResponseCommand();
|
||||
if (response != null) {
|
||||
|
||||
Reference in New Issue
Block a user