1
This commit is contained in:
parent
24bc7f1110
commit
90333e6933
@ -21,12 +21,12 @@ class Erc721Refresher extends BaseService {
|
|||||||
async start() {
|
async start() {
|
||||||
while (true) {
|
while (true) {
|
||||||
await this.pullEvent();
|
await this.pullEvent();
|
||||||
await utils.sleep(8000 + utils.randRange(500, 1500));
|
await utils.sleep(2000 + utils.randRange(500, 1500));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async pullEvent() {
|
async pullEvent() {
|
||||||
const logHead = this.genLogHead() + ' pullEvent: ';
|
const logHead = this.genLogHead('pullEvent ');
|
||||||
}
|
}
|
||||||
|
|
||||||
getNetId() {
|
getNetId() {
|
||||||
@ -42,8 +42,8 @@ class Erc721Refresher extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
genLogHead(msg) {
|
genLogHead(msg) {
|
||||||
const instName = this.getNetId() + '.' + this.getContractName() + ' erc721 refresher ' + msg;
|
const head = this.getNetId() + '.' + this.getContractName() + ' erc721 refresher ' + msg;
|
||||||
return instName;
|
return head;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user