mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
single threaded update package download 2
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user