refactor(batchUse): 调整批量使用功能的参数
- 将 batchMax 值从 50 修改为 10 - 将批次间隔时间从 3000 毫秒修改为 500 毫秒
This commit is contained in:
@@ -19558,7 +19558,7 @@ var app;
|
|||||||
n.writeInt(t), n.writeInt(num), i.writeToBytes(n), this.evKig(n);
|
n.writeInt(t), n.writeInt(num), i.writeToBytes(n), this.evKig(n);
|
||||||
};
|
};
|
||||||
const batchUse = (num) => {
|
const batchUse = (num) => {
|
||||||
const batchMax = 50;
|
const batchMax = 10;
|
||||||
return (() => {
|
return (() => {
|
||||||
send(Math.min(num, batchMax));
|
send(Math.min(num, batchMax));
|
||||||
num -= batchMax;
|
num -= batchMax;
|
||||||
@@ -19566,7 +19566,7 @@ var app;
|
|||||||
if (num > batchMax) {
|
if (num > batchMax) {
|
||||||
batchUse(num);
|
batchUse(num);
|
||||||
}
|
}
|
||||||
}, 3000);
|
}, 500);
|
||||||
})();
|
})();
|
||||||
};
|
};
|
||||||
batchUse(e);
|
batchUse(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user