Skip to content

Commit

Permalink
Do not use BatchedMessageIdImpl as the message id in producer callback
Browse files Browse the repository at this point in the history
Fix the regression introduced in apache#153

----
9.006, 8.860, 9.113
  • Loading branch information
BewareMyPower committed Oct 27, 2024
1 parent 42ecdac commit 7a1e590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MessageAndCallbackBatch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static void completeSendCallbacks(const std::vector<SendCallback>& callbacks, Re
const MessageId& id) {
int32_t numOfMessages = static_cast<int32_t>(callbacks.size());
for (int32_t i = 0; i < numOfMessages; i++) {
callbacks[i](result, MessageIdBuilder::from(id).batchIndex(i).batchSize(numOfMessages).build());
callbacks[i](result, MessageIdBuilder::from(id).batchIndex(i).build());
}
}

Expand Down

0 comments on commit 7a1e590

Please sign in to comment.