Skip to content

Commit

Permalink
do not always requeue when you should only requeue deleted messages
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr committed Mar 3, 2025
1 parent 5a9c765 commit 0dfd4c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static <T> DefaultQueueMessage<T> alwaysRequeue(String id, T message, Runnable d
}

static <T> DefaultQueueMessage<T> requeueIfDeleted(String id, T message, Runnable doDelete, Runnable doRequeue) {
return new DefaultQueueMessage<>(id, message, doDelete, doRequeue, true);
return new DefaultQueueMessage<>(id, message, doDelete, doRequeue, false);
}

private final String id;
Expand Down

0 comments on commit 0dfd4c0

Please sign in to comment.