mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-11 18:36:45 +02:00
Bump AsyncKeyedLock to 7.0.1 (#1276)
This commit is contained in:
parent
aa377f3131
commit
bb14e3431d
3 changed files with 4 additions and 14 deletions
|
@ -19,12 +19,7 @@ namespace DiscordChatExporter.Cli.Tests.Infra;
|
||||||
|
|
||||||
public static class ExportWrapper
|
public static class ExportWrapper
|
||||||
{
|
{
|
||||||
private static readonly AsyncKeyedLocker<string> Locker =
|
private static readonly AsyncKeyedLocker<string> Locker = new();
|
||||||
new(o =>
|
|
||||||
{
|
|
||||||
o.PoolSize = 20;
|
|
||||||
o.PoolInitialFill = 1;
|
|
||||||
});
|
|
||||||
|
|
||||||
private static readonly string DirPath = Path.Combine(
|
private static readonly string DirPath = Path.Combine(
|
||||||
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)
|
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="AsyncKeyedLock" Version="7.0.0" />
|
<PackageReference Include="AsyncKeyedLock" Version="7.0.1" />
|
||||||
<PackageReference Include="CSharpier.MsBuild" Version="0.28.2" PrivateAssets="all" />
|
<PackageReference Include="CSharpier.MsBuild" Version="0.28.2" PrivateAssets="all" />
|
||||||
<PackageReference Include="Gress" Version="2.1.1" />
|
<PackageReference Include="Gress" Version="2.1.1" />
|
||||||
<PackageReference Include="JsonExtensions" Version="1.2.0" />
|
<PackageReference Include="JsonExtensions" Version="1.2.0" />
|
||||||
|
@ -12,4 +12,4 @@
|
||||||
<PackageReference Include="YoutubeExplode" Version="6.4.0" />
|
<PackageReference Include="YoutubeExplode" Version="6.4.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -16,12 +16,7 @@ namespace DiscordChatExporter.Core.Exporting;
|
||||||
|
|
||||||
internal partial class ExportAssetDownloader(string workingDirPath, bool reuse)
|
internal partial class ExportAssetDownloader(string workingDirPath, bool reuse)
|
||||||
{
|
{
|
||||||
private static readonly AsyncKeyedLocker<string> Locker =
|
private static readonly AsyncKeyedLocker<string> Locker = new();
|
||||||
new(o =>
|
|
||||||
{
|
|
||||||
o.PoolSize = 20;
|
|
||||||
o.PoolInitialFill = 1;
|
|
||||||
});
|
|
||||||
|
|
||||||
// File paths of the previously downloaded assets
|
// File paths of the previously downloaded assets
|
||||||
private readonly Dictionary<string, string> _previousPathsByUrl = new(StringComparer.Ordinal);
|
private readonly Dictionary<string, string> _previousPathsByUrl = new(StringComparer.Ordinal);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue