File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
rocketmq-client/src/main/java/com/alibaba/rocketmq/client/impl Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 102
102
import com .alibaba .rocketmq .common .protocol .header .SearchOffsetRequestHeader ;
103
103
import com .alibaba .rocketmq .common .protocol .header .SearchOffsetResponseHeader ;
104
104
import com .alibaba .rocketmq .common .protocol .header .SendMessageRequestHeader ;
105
+ import com .alibaba .rocketmq .common .protocol .header .SendMessageRequestHeaderV2 ;
105
106
import com .alibaba .rocketmq .common .protocol .header .SendMessageResponseHeader ;
106
107
import com .alibaba .rocketmq .common .protocol .header .UnregisterClientRequestHeader ;
107
108
import com .alibaba .rocketmq .common .protocol .header .UpdateConsumerOffsetRequestHeader ;
@@ -340,8 +341,14 @@ public SendResult sendMessage(//
340
341
projectGroupPrefix ));
341
342
}
342
343
344
+ // RemotingCommand request =
345
+ // RemotingCommand.createRequestCommand(RequestCode.SEND_MESSAGE,
346
+ // requestHeader);
347
+
348
+ SendMessageRequestHeaderV2 requestHeaderV2 =
349
+ SendMessageRequestHeaderV2 .createSendMessageRequestHeaderV2 (requestHeader );
343
350
RemotingCommand request =
344
- RemotingCommand .createRequestCommand (RequestCode .SEND_MESSAGE , requestHeader );
351
+ RemotingCommand .createRequestCommand (RequestCode .SEND_MESSAGE_V2 , requestHeaderV2 );
345
352
346
353
request .setBody (msg .getBody ());
347
354
You can’t perform that action at this time.
0 commit comments