1
This commit is contained in:
parent
2381aaaa1c
commit
92a673dd16
@ -78,7 +78,7 @@ class PullDbEvent extends BaseService {
|
|||||||
this.getContractAddress()
|
this.getContractAddress()
|
||||||
]);
|
]);
|
||||||
if (err) {
|
if (err) {
|
||||||
throw err;
|
throw new Error(err);
|
||||||
}
|
}
|
||||||
if (rows.length > 0) {
|
if (rows.length > 0) {
|
||||||
await utils.serial(
|
await utils.serial(
|
||||||
@ -94,6 +94,7 @@ class PullDbEvent extends BaseService {
|
|||||||
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) {
|
||||||
|
utils.safeDumpErrStack(err);
|
||||||
log.error(logHead + err);
|
log.error(logHead + err);
|
||||||
await utils.sleep(5000 + utils.randRange(1000, 3000));
|
await utils.sleep(5000 + utils.randRange(1000, 3000));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user