Skip to content

Commit

Permalink
fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Technoboy- committed Nov 19, 2022
1 parent 6228045 commit 61cff54
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -850,8 +850,7 @@ protected boolean enqueueMessageAndCheckBatchReceive(Message<T> message) {
// synchronize redeliverUnacknowledgedMessages().
incomingQueueLock.lock();
try {
if (isValidConsumerEpoch((MessageImpl<T>) message) && canEnqueueMessage(message)
&& incomingMessages.offer(message)) {
if (canEnqueueMessage(message) && incomingMessages.offer(message)) {
// After we have enqueued the messages on `incomingMessages` queue, we cannot touch the message
// instance anymore, since for pooled messages, this instance was possibly already been released
// and recycled.
Expand Down

0 comments on commit 61cff54

Please sign in to comment.