From ae5cbb6f16fbd8363133c40390d1d18928ec831e Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Thu, 3 Nov 2022 16:23:26 -0500 Subject: [PATCH] reasonable jitter --- src/Services/Podcasts/Podcast.Infrastructure/Http/ShowClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/Podcasts/Podcast.Infrastructure/Http/ShowClient.cs b/src/Services/Podcasts/Podcast.Infrastructure/Http/ShowClient.cs index 4f01bb2..70bce80 100644 --- a/src/Services/Podcasts/Podcast.Infrastructure/Http/ShowClient.cs +++ b/src/Services/Podcasts/Podcast.Infrastructure/Http/ShowClient.cs @@ -12,7 +12,7 @@ namespace Podcast.Infrastructure.Http { // Who would do such a thing?! // TODO fix this horrible perf leak! - await Task.Delay(TimeSpan.FromSeconds(Random.Shared.NextInt64())); + await Task.Delay(TimeSpan.FromSeconds(Random.Shared.NextInt64(1, 11))); return await base.SendAsync(request, cancellationToken); } }