2.0.0 #92

Merged
defnotken merged 171 commits from 2.0.0 into master 2025-12-21 17:19:36 +00:00
Showing only changes of commit 0e076f6290 - Show all commits

View File

@@ -257,11 +257,12 @@ public sealed class FileCacheManager : IHostedService
brokenEntities.Add(fileCache); brokenEntities.Add(fileCache);
return; return;
} }
var algo = Crypto.DetectAlgo(fileCache.Hash); var algo = Crypto.DetectAlgo(fileCache.Hash);
string computedHash; string computedHash;
try try
{ {
computedHash = await Crypto.ComputeFileHashAsync(fileCache.ResolvedFilepath, algo, token).ConfigureAwait(false); computedHash = await Crypto.ComputeFileHashAsync(fileCache.ResolvedFilepath, Crypto.HashAlgo.Sha1, token).ConfigureAwait(false);
} }
catch (Exception ex) catch (Exception ex)
{ {