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

@@ -1,11 +1,12 @@
using System.Net;
using System.Collections.Concurrent;
using System.Net;
using log4net;
namespace API.MangaDownloadClients;
public abstract class DownloadClient
{
private static readonly Dictionary<RequestType, DateTime> LastExecutedRateLimit = new();
private static readonly ConcurrentDictionary<RequestType, DateTime> LastExecutedRateLimit = new();
protected ILog Log { get; init; }
protected DownloadClient()