diff --git a/DiscordChatExporter.Cli.Tests/Infra/ExportWrapper.cs b/DiscordChatExporter.Cli.Tests/Infra/ExportWrapper.cs index aa3c37a8..0cfa3f64 100644 --- a/DiscordChatExporter.Cli.Tests/Infra/ExportWrapper.cs +++ b/DiscordChatExporter.Cli.Tests/Infra/ExportWrapper.cs @@ -19,12 +19,7 @@ namespace DiscordChatExporter.Cli.Tests.Infra; public static class ExportWrapper { - private static readonly AsyncKeyedLocker Locker = - new(o => - { - o.PoolSize = 20; - o.PoolInitialFill = 1; - }); + private static readonly AsyncKeyedLocker Locker = new(); private static readonly string DirPath = Path.Combine( Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) diff --git a/DiscordChatExporter.Core/DiscordChatExporter.Core.csproj b/DiscordChatExporter.Core/DiscordChatExporter.Core.csproj index 264d9e65..7f23417a 100644 --- a/DiscordChatExporter.Core/DiscordChatExporter.Core.csproj +++ b/DiscordChatExporter.Core/DiscordChatExporter.Core.csproj @@ -1,7 +1,7 @@ - + @@ -12,4 +12,4 @@ - \ No newline at end of file + diff --git a/DiscordChatExporter.Core/Exporting/ExportAssetDownloader.cs b/DiscordChatExporter.Core/Exporting/ExportAssetDownloader.cs index 35620d4b..7e23be66 100644 --- a/DiscordChatExporter.Core/Exporting/ExportAssetDownloader.cs +++ b/DiscordChatExporter.Core/Exporting/ExportAssetDownloader.cs @@ -16,12 +16,7 @@ namespace DiscordChatExporter.Core.Exporting; internal partial class ExportAssetDownloader(string workingDirPath, bool reuse) { - private static readonly AsyncKeyedLocker Locker = - new(o => - { - o.PoolSize = 20; - o.PoolInitialFill = 1; - }); + private static readonly AsyncKeyedLocker Locker = new(); // File paths of the previously downloaded assets private readonly Dictionary _previousPathsByUrl = new(StringComparer.Ordinal);