fix: Fixes libdeflate gc pin issue (#1794)

This commit is contained in:
Kamron Batman 2024-05-25 18:11:46 -07:00 • committed by GitHub
parent 21347c8b6b
commit 21c5e46565
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 8 additions and 15 deletions

View file

@ -29,11 +29,7 @@ public class Accounts : GenericEntityPersistence<IAccount>
public static IEnumerable<IAccount> GetAccounts() => _accountsByName.Values;
public static IAccount GetAccount(string username)
{
_accountsByName.TryGetValue(username, out var a);
return a;
}
public static IAccount GetAccount(string username) => _accountsByName.GetValueOrDefault(username);
public static void Add(Account a)
{

View file

@ -34,7 +34,7 @@
<ProjectReference Include="..\Server\Server.csproj" Private="false" PrivateAssets="All" IncludeAssets="None">
<IncludeInPackage>false</IncludeInPackage>
</ProjectReference>
<PackageReference Include="LibDeflate.Bindings" Version="1.0.1.120" />
<PackageReference Include="LibDeflate.Bindings" Version="1.0.2.120" />
<PackageReference Include="MailKit" Version="4.6.0" />
<PackageReference Include="Microsoft.Extensions.FileSystemGlobbing" Version="8.0.0" />
<PackageReference Include="CommunityToolkit.HighPerformance" Version="8.2.2" />