From 96892656e1681784492474aee12b72ed2217a3fb Mon Sep 17 00:00:00 2001 From: pmosk Date: Tue, 9 Jan 2024 17:40:30 +0400 Subject: [PATCH] Use transient failure --- src/Console/Handler/Handler.Handler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/Handler/Handler.Handler.cs b/src/Console/Handler/Handler.Handler.cs index 761d5fd..98569fd 100644 --- a/src/Console/Handler/Handler.Handler.cs +++ b/src/Console/Handler/Handler.Handler.cs @@ -36,7 +36,7 @@ public async ValueTask>> HandleAsync(Pi await Task.Delay(retryDelayInSeconds * 1000, cancellationToken).ConfigureAwait(false); } - return Failure.Create(HandlerFailureCode.Persistent, "All attempts were unsuccessful"); + return Failure.Create(HandlerFailureCode.Transient, "All attempts were unsuccessful"); } private async ValueTask>> PingAsync(PingIn input, CancellationToken cancellationToken)