single threaded update package download 2

This commit is contained in:
DismissedLight
2024-07-22 14:39:28 +08:00
parent 04cd4e7137
commit 599ddd147c

View File

@@ -153,6 +153,7 @@ internal sealed partial class UpdateService : IUpdateService
StreamCopyWorker<UpdateStatus> worker = new(webStream, fileStream, bytesRead => new UpdateStatus(version, bytesRead, totalBytes));
await worker.CopyAsync(progress).ConfigureAwait(false);
fileStream.SetLength(fileStream.Position);
string? remoteHash = versionInformation.Sha256;
ArgumentNullException.ThrowIfNull(remoteHash);