Skip to content

Commit

Permalink
Increase Polly retries to 4 and duration to 1 second (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwaldron authored Mar 3, 2024
1 parent b409056 commit 29d7e69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PodcastRewind/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

// Configure services.
builder.Services.AddHttpClient(nameof(Polly))
.AddTransientHttpErrorPolicy(policy => policy.WaitAndRetryAsync(2, _ => TimeSpan.FromMilliseconds(600)));
.AddTransientHttpErrorPolicy(policy => policy.WaitAndRetryAsync(4, _ => TimeSpan.FromMilliseconds(1000)));
builder.Services.AddHsts(options => options.MaxAge = TimeSpan.FromDays(365));
builder.Services.AddRazorPages();
builder.Services.AddControllers();
Expand Down

0 comments on commit 29d7e69

Please sign in to comment.