浏览代码

Fixed SendAsync or ExecuteAsync recursion retries bug. (#160)

undefined
Savorboard 6 年前
父节点
当前提交
f0bd253c92
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      src/DotNetCore.CAP/IPublishMessageSender.Base.cs
  2. +1
    -1
      src/DotNetCore.CAP/ISubscribeExecutor.Default.cs

+ 1
- 1
src/DotNetCore.CAP/IPublishMessageSender.Base.cs 查看文件

@@ -75,7 +75,7 @@ namespace DotNetCore.CAP
{
_logger.SenderRetrying(message.Id, message.Retries);

await SendAsync(message);
return await SendAsync(message);
}
return OperateResult.Failed(result.Exception);
}


+ 1
- 1
src/DotNetCore.CAP/ISubscribeExecutor.Default.cs 查看文件

@@ -77,7 +77,7 @@ namespace DotNetCore.CAP
await SetFailedState(message, ex, out bool stillRetry);
if (stillRetry)
{
await ExecuteAsync(message);
return await ExecuteAsync(message);
}

return OperateResult.Failed(ex);


正在加载...
取消
保存