mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-09-19 12:16:24 +08:00
perf(ftp): improve concurrent Link response; fix alias/local driver issues (#974)
This commit is contained in:
@ -550,9 +550,9 @@ func (y *Cloud189PC) StreamUpload(ctx context.Context, dstDir model.Obj, file mo
|
||||
return err
|
||||
}
|
||||
silceMd5.Reset()
|
||||
w, _ := utils.CopyWithBuffer(writers, reader)
|
||||
w, err := utils.CopyWithBuffer(writers, reader)
|
||||
if w != size {
|
||||
return fmt.Errorf("can't read data, expected=%d, got=%d", size, w)
|
||||
return fmt.Errorf("failed to read all data: (expect =%d, actual =%d) %w", size, w, err)
|
||||
}
|
||||
// 计算块md5并进行hex和base64编码
|
||||
md5Bytes := silceMd5.Sum(nil)
|
||||
|
Reference in New Issue
Block a user