Skip to content

Conversation

@xrgzs
Copy link
Contributor

@xrgzs xrgzs commented May 25, 2025

  • 修复上传函数中 finish += byteSize 加了两次,计算错误,导致上传提前结束,上传大文件失败的 BUG

  • 修复一处日志拼写错误

@petercat-assistant
Copy link

Walkthrough

此PR修复了上传函数中finish += byteSize被重复调用的问题,导致上传提前结束和大文件上传失败。此外,还修正了一处日志拼写错误。

Changes

文件 概要
drivers/cloudreve/util.go, drivers/cloudreve_v4/util.go 移除了重复的finish += byteSize调用,并修正了日志中的拼写错误。

return errors.New("faild to get ETag from header")
return errors.New("failed to get ETag from header")
default:
retryCount = 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修正了拼写错误,将"faild"改为"failed"。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant