This commit is contained in:
aozhiwei 2023-07-10 19:47:26 +08:00
parent af794c8235
commit ce0a246f74

View File

@ -43,15 +43,19 @@ class Erc721Refresher extends BaseService {
throw err;
}
if (rows.length > 0) {
this.progInfo['pendingCount'] = rows.length;
await utils.serial(
rows,
async (row) => {
await this.refresh(row);
--this.progInfo['pendingCount'];
}
);
} else {
this.lastIdx = BigInt(0);
}
++this.progInfo['refreshedCount'];
this.progInfo['pendingCount'] = 0;
} catch (err) {
log.error(logHead + err);
await utils.sleep(5000 + utils.randRange(1000, 3000));