Skip to content

Commit 4b9b42a

Browse files
author
YangSen-qn
committed
optimize download
1 parent 21af7df commit 4b9b42a

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2.19.1
2+
## 优化
3+
1. 优化批量下载
4+
15
# 2.19.0
26
## 新增
37
1. 支持沙箱(`sandbox`)管理功能,包括沙箱实例的列举(`list`)、创建(`create`)、连接(`connect`)、执行命令(`exec`)、终止(`kill`)、暂停(`pause`)、恢复(`resume`),以及查看日志(`logs`)和资源指标(`metrics`

iqshell/storage/object/batch/some.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func Some(operations []Operation) ([]*OperationResult, *data.CodeError) {
2121
Info: flow.Info{
2222
Force: true,
2323
WorkerCount: 1,
24-
StopWhenWorkError: true,
24+
StopWhenWorkError: false,
2525
},
2626
WorkList: works,
2727
OperationCountPerRequest: defaultOperationCountPerRequest,

iqshell/storage/object/download/operations/work_provider.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ func (w *workProvider) getWorkInfoFromFile() {
101101

102102
var keys []string
103103
for {
104-
if len(keys) == 300 {
104+
if len(keys) == 250 {
105105
if !w.getWorkInfoOfKeys(keys) {
106106
break
107107
}
108108
keys = nil
109109
}
110110

111111
if keys == nil {
112-
keys = make([]string, 0, 300)
112+
keys = make([]string, 0, 250)
113113
}
114114

115115
hasMore, workInfo, pErr := workPro.Provide()

0 commit comments

Comments
 (0)