This commit is contained in:
2022-12-12 20:17:46 +08:00
parent b3f0347d54
commit 4d1a6e6e4e
3 changed files with 4 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ public partial class Main : ToolBase<Option>
}
}
private void WriteParts(HttpResponseMessage rsp, string mainFilePath //
private void WritePart(HttpResponseMessage rsp, string mainFilePath //
, long startPos, long endPos //
, Action<int> rateHandle)
{
@@ -167,7 +167,7 @@ public partial class Main : ToolBase<Option>
// ReSharper disable once AccessToDisposedClosure
using var getRsp
= http.Send(getReq, HttpCompletionOption.ResponseHeadersRead);
WriteParts(getRsp, mainFilePath, startPos, endPos, x => {
WritePart(getRsp, mainFilePath, startPos, endPos, x => {
tChild.Increment(x);
tParent.Increment(x);
});