Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ public void rollbackOnExceptionIfNecessary(Throwable ex, long tag) {

/**
* Perform a commit or message acknowledgement, as appropriate.
* NOTE: This method was never been intended tobe public.
* NOTE: This method was never intended to be public.
* @param localTx Whether the channel is locally transacted.
* @param forceAck perform {@link Channel#basicAck(long, boolean)} independently of {@link #acknowledgeMode}.
* @return true if at least one delivery tag exists.
Expand All @@ -909,7 +909,7 @@ boolean commitIfNecessary(boolean localTx, boolean forceAck) {
try {
boolean ackRequired = forceAck || (!this.acknowledgeMode.isAutoAck() && !this.acknowledgeMode.isManual());

if (ackRequired && (!this.transactional || (isLocallyTransacted && !cancelled()))) {
if (ackRequired && (!this.transactional || isLocallyTransacted)) {
OptionalLong deliveryTag = this.deliveryTags.stream().mapToLong(l -> l).max();
deliveryTag.ifPresent((tag) -> {
try {
Expand Down