This commit is contained in:
aozhiwei 2023-07-05 20:05:39 +08:00
parent 43ff863fe9
commit 55d4098be7

View File

@ -59,6 +59,7 @@ class PullDbEvent extends BaseService {
try { try {
const startIdx = this.getStartIdx(); const startIdx = this.getStartIdx();
const endIdx = this.getEndIdx(); const endIdx = this.getEndIdx();
++this.progInfo['pullCount'];
if (startIdx >= endIdx) { if (startIdx >= endIdx) {
return; return;
} }
@ -87,7 +88,6 @@ class PullDbEvent extends BaseService {
} else { } else {
this.lastIdx = endIdx; this.lastIdx = endIdx;
} }
++this.progInfo['pullCount'];
this.progInfo['lastIdx'] = this.lastIdx.toString(); this.progInfo['lastIdx'] = this.lastIdx.toString();
await this.saveLastIdx(this.lastIdx); await this.saveLastIdx(this.lastIdx);
} catch (err) { } catch (err) {