Skip to content
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

pref:worker模块下载接口读取文件流出错应该整个接口重试 #6404 #6422

Closed
wants to merge 3 commits into from

Conversation

yjieliang
Copy link
Collaborator

pref:worker模块下载接口读取文件流出错应该整个接口重试 #6404

@yjieliang yjieliang closed this Mar 25, 2022
@yjieliang yjieliang reopened this Mar 25, 2022
@yjieliang yjieliang closed this Mar 25, 2022
writeTimeoutInSec = writeTimeoutInSec
).use { response ->
retryCount = download(response, destPath, retryCount)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

这么写不符合面向对象思想,这代码看起来了是必须要重试,不能在捕获异常的时候直接调最外层的downloa方法重试下载接口吗

@yjieliang yjieliang deleted the pref_6404 branch March 28, 2022 08:40
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.

2 participants