From 760dca79b3aa04b0dbd0ef6136acefcc3115459e Mon Sep 17 00:00:00 2001 From: Jud White Date: Mon, 5 Oct 2015 00:14:28 -0500 Subject: [PATCH] 0.5.4: if final attempt fails fail with reason MaxAttemptsExceeded this is the same behavior as in 0.5.3 --- NsqSharp/Bus/MessageDistributor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NsqSharp/Bus/MessageDistributor.cs b/NsqSharp/Bus/MessageDistributor.cs index 921f23e..2619ce6 100644 --- a/NsqSharp/Bus/MessageDistributor.cs +++ b/NsqSharp/Bus/MessageDistributor.cs @@ -162,7 +162,7 @@ public void HandleMessage(IMessage message) ( messageInformation, requeue ? FailedMessageQueueAction.Requeue : FailedMessageQueueAction.Finish, - FailedMessageReason.HandlerException, + requeue ? FailedMessageReason.HandlerException : FailedMessageReason.MaxAttemptsExceeded, ex ) );