Fix Concurrency of DownloadClient LastExecutedRateLimit

This commit is contained in:
2025-07-21 13:06:35 +02:00
parent 9d2dd2eabb
commit 9d560692dc
3 changed files with 5 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ namespace API.MangaDownloadClients;
internal class HttpDownloadClient : DownloadClient
{
private static readonly FlareSolverrDownloadClient FlareSolverrDownloadClient = new();
internal override RequestResult MakeRequestInternal(string url, string? referrer = null, string? clickButton = null)
{
if (clickButton is not null)
@@ -36,7 +37,7 @@ internal class HttpDownloadClient : DownloadClient
(s.Product?.Name ?? "").Contains("cloudflare", StringComparison.InvariantCultureIgnoreCase)))
{
Log.Debug("Retrying with FlareSolverr!");
return new FlareSolverrDownloadClient().MakeRequestInternal(url, referrer, clickButton);
return FlareSolverrDownloadClient.MakeRequestInternal(url, referrer, clickButton);
}
else
{