Sfoglia il codice sorgente

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

undefined
Savorboard 6 anni fa
parent
commit
f0bd253c92
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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 Vedi File

@@ -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 Vedi File

@@ -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);


Caricamento…
Annulla
Salva