Browse Source

Fixed bug of the FailedRetryCount does not increase when raised SubscriberNotFoundException. #90

master
Savorboard 6 years ago
parent
commit
13c3e34227
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/DotNetCore.CAP/IQueueExecutor.Subscribe.cs

+ 2
- 0
src/DotNetCore.CAP/IQueueExecutor.Subscribe.cs View File

@@ -68,6 +68,8 @@ namespace DotNetCore.CAP

AddErrorReasonToContent(message, ex);

++message.Retries; //issue: https://github.com/dotnetcore/CAP/issues/90

await _stateChanger.ChangeStateAsync(message, new FailedState(), connection);

fetched.RemoveFromQueue();


Loading…
Cancel
Save