Skip to content

Commit

Permalink
re-enabled retry policy
Browse files Browse the repository at this point in the history
  • Loading branch information
mizrael committed Jun 11, 2024
1 parent 842235d commit 7890f07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EvenireDB.Client/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ private static IHttpClientBuilder ConfigureHttpClient<TClient, TImplementation>(
{
var delay = Backoff.DecorrelatedJitterBackoffV2(medianFirstRetryDelay: TimeSpan.FromSeconds(1), retryCount: 5);

return services.AddHttpClient<TClient, TImplementation>(client => ConfigureClientSettings(client, config));
//.AddTransientHttpErrorPolicy(builder => builder.WaitAndRetryAsync(delay));
return services.AddHttpClient<TClient, TImplementation>(client => ConfigureClientSettings(client, config))
.AddTransientHttpErrorPolicy(builder => builder.WaitAndRetryAsync(delay));
}

private static void ConfigureClientSettings(HttpClient client, EvenireClientConfig config)
Expand Down

0 comments on commit 7890f07

Please sign in to comment.