Skip to content

[BUG] 修复 initBeforeUploadChunks 错误未中断的行为 #503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 22, 2021

Conversation

yinxulai
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Apr 21, 2021

Codecov Report

Merging #503 (8259194) into master (2cfc5ed) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #503   +/-   ##
=======================================
  Coverage   42.21%   42.21%           
=======================================
  Files           9        9           
  Lines         514      514           
  Branches      113      113           
=======================================
  Hits          217      217           
  Misses        285      285           
  Partials       12       12           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2cfc5ed...8259194. Read the comment docs.

@qiniu-bot qiniu-bot added size/S and removed size/XS labels Apr 21, 2021
const errorMessage = 'chunkSize must be a positive integer.'
this.logger.error(errorMessage)
throw new Error(errorMessage)
throw new Error('chunkSize must be a positive integer.')
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

log 输出应秉承,谁消费、谁输出,例如这里:
不应该一边产生了一个副作用(输出日志),又 throw Error,很容易导致外面重复输出

Copy link
Collaborator

Choose a reason for hiding this comment

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

如上个 pr 所说的
putFile 方法也应该设计成这样,而不应该改定位

lzfee0227
lzfee0227 previously approved these changes Apr 21, 2021
Copy link
Collaborator

@lzfee0227 lzfee0227 left a comment

Choose a reason for hiding this comment

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

改版本?

huangbinjie
huangbinjie previously approved these changes Apr 21, 2021
Copy link

@huangbinjie huangbinjie left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@lzfee0227 lzfee0227 left a comment

Choose a reason for hiding this comment

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

1

@yinxulai yinxulai merged commit 94e349d into qiniu:master Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants