Feat: download file with speed limit

This commit is contained in:
HFO4
2019-11-27 13:10:19 +08:00
parent 29def02489
commit 9bb432c220
4 changed files with 39 additions and 1 deletions

View File

@@ -77,6 +77,8 @@ func (fs *FileSystem) CancelUpload(ctx context.Context, path string, file FileHe
case <-ctx.Done():
// 客户端正常关闭,不执行操作
default:
// 客户端取消上传,删除临时文件
util.Log().Debug("客户端取消上传")
if fs.AfterUploadCanceled == nil {
return
}