Forced another sha1

This commit is contained in:
cake
2025-12-02 07:01:25 +01:00
parent 72cd5006db
commit 0e076f6290

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)
{ {