Skip to content

Commit

Permalink
[ISSUE apache#7676] use clientDecode for consuming message directly (a…
Browse files Browse the repository at this point in the history
…pache#7677)

Co-authored-by: dengzhiwen1 <[email protected]>
  • Loading branch information
cserwen and dengzhiwen1 authored Dec 20, 2023
1 parent 403ad6f commit c101216
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ private RemotingCommand consumeMessageDirectly(ChannelHandlerContext ctx,
(ConsumeMessageDirectlyResultRequestHeader) request
.decodeCommandCustomHeader(ConsumeMessageDirectlyResultRequestHeader.class);

final MessageExt msg = MessageDecoder.decode(ByteBuffer.wrap(request.getBody()));
final MessageExt msg = MessageDecoder.clientDecode(ByteBuffer.wrap(request.getBody()), true);

ConsumeMessageDirectlyResult result =
this.mqClientFactory.consumeMessageDirectly(msg, requestHeader.getConsumerGroup(), requestHeader.getBrokerName());
Expand Down

0 comments on commit c101216

Please sign in to comment.