瀏覽代碼

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

undefined
Savorboard 6 年之前
父節點
當前提交
4fe8259ce4
共有 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);


Loading…
取消
儲存