Skip to content

Commit 760dca7

Browse files
committed
0.5.4: if final attempt fails fail with reason MaxAttemptsExceeded
this is the same behavior as in 0.5.3
1 parent 4169be6 commit 760dca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NsqSharp/Bus/MessageDistributor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public void HandleMessage(IMessage message)
162162
(
163163
messageInformation,
164164
requeue ? FailedMessageQueueAction.Requeue : FailedMessageQueueAction.Finish,
165-
FailedMessageReason.HandlerException,
165+
requeue ? FailedMessageReason.HandlerException : FailedMessageReason.MaxAttemptsExceeded,
166166
ex
167167
)
168168
);

0 commit comments

Comments
 (0)