This commit is contained in:
aozhiwei 2023-07-14 16:15:22 +08:00
parent 2381aaaa1c
commit 92a673dd16

View File

@ -78,7 +78,7 @@ class PullDbEvent extends BaseService {
this.getContractAddress()
]);
if (err) {
throw err;
throw new Error(err);
}
if (rows.length > 0) {
await utils.serial(
@ -94,6 +94,7 @@ class PullDbEvent extends BaseService {
this.progInfo['lastIdx'] = this.lastIdx.toString();
await this.saveLastIdx(this.lastIdx);
} catch (err) {
utils.safeDumpErrStack(err);
log.error(logHead + err);
await utils.sleep(5000 + utils.randRange(1000, 3000));
}