Skip to content

Commit 449ee3f

Browse files
committed
Increase Retries in HttpClientWrapper
1 parent a07207a commit 449ee3f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Web/WebMVC/Services/Utilities/HttpApiClientWrapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private Policy CreateCircuitBreakerPolicy() =>
3636
Policy.Handle<HttpRequestException>()
3737
.CircuitBreakerAsync(
3838
// number of exceptions before breaking circuit
39-
3,
39+
5,
4040
// time circuit opened before retry
4141
TimeSpan.FromMinutes(1),
4242
(exception, duration) =>
@@ -55,7 +55,7 @@ private Policy CreateRetryPolicy() =>
5555
Policy.Handle<HttpRequestException>()
5656
.WaitAndRetryAsync(
5757
// number of retries
58-
3,
58+
5,
5959
// exponential backofff
6060
retryAttempt => TimeSpan.FromSeconds(Math.Pow(2, retryAttempt)),
6161
// on retry

0 commit comments

Comments
 (0)