Skip to content

Commit

Permalink
Increase isLongRunning param on hasher to 1 GB
Browse files Browse the repository at this point in the history
  • Loading branch information
neon-nyan committed Feb 16, 2025
1 parent 5cb49f0 commit 02afb52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CollapseLauncher/Classes/Interfaces/Class/ProgressBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ protected virtual ConfiguredTaskAwaitable<byte[]> GetCryptoHashAsync<T>(
Hash.GetCryptoHashAsync<T>(fileInfo,
hmacKey,
read => UpdateHashReadProgress(read, updateProgress, updateTotalProgress),
fileInfo is { Exists: true, Length: > 100 << 20 },
fileInfo is { Exists: true, Length: > 1024 << 20 },
token);

protected virtual ConfiguredTaskAwaitable<byte[]> GetCryptoHashAsync<T>(
Expand All @@ -1054,7 +1054,7 @@ protected virtual ConfiguredTaskAwaitable<byte[]> GetCryptoHashAsync<T>(
Hash.GetCryptoHashAsync<T>(stream,
hmacKey,
read => UpdateHashReadProgress(read, updateProgress, updateTotalProgress),
stream is { Length: > 100 << 20 },
stream is { Length: > 1024 << 20 },
token);

protected virtual byte[] GetCryptoHash<T>(
Expand Down Expand Up @@ -1112,7 +1112,7 @@ protected virtual ConfiguredTaskAwaitable<byte[]> GetHashAsync<T>(
where T : NonCryptographicHashAlgorithm, new() =>
Hash.GetHashAsync<T>(fileInfo,
read => UpdateHashReadProgress(read, updateProgress, updateTotalProgress),
fileInfo is { Exists: true, Length: > 100 << 20 },
fileInfo is { Exists: true, Length: > 1024 << 20 },
token);

protected virtual ConfiguredTaskAwaitable<byte[]> GetHashAsync<T>(
Expand All @@ -1123,7 +1123,7 @@ protected virtual ConfiguredTaskAwaitable<byte[]> GetHashAsync<T>(
where T : NonCryptographicHashAlgorithm, new() =>
Hash.GetHashAsync<T>(stream,
read => UpdateHashReadProgress(read, updateProgress, updateTotalProgress),
stream is { Length: > 100 << 20 },
stream is { Length: > 1024 << 20 },
token);

protected virtual byte[] GetHash<T>(
Expand Down

0 comments on commit 02afb52

Please sign in to comment.