Fix: repeated return of capacity when OneDrive WebDAV upload canceled

This commit is contained in:
HFO4
2020-04-07 10:51:54 +08:00
parent 46743f3c1e
commit 8c7d075484
3 changed files with 1 additions and 53 deletions

View File

@@ -216,9 +216,6 @@ func (client *Client) Upload(ctx context.Context, dst string, size int, file io.
// 因为后面需要错误重试,这里要把分片内容读到内存中
chunkContent := chunkData[:chunkSize]
_, err := io.ReadFull(file, chunkContent)
if err != nil {
return err
}
chunk := Chunk{
Offset: offset,