This commit is contained in:
aozhiwei 2023-07-03 15:39:34 +08:00
parent f79cf4ce50
commit 1ea5f2e13b

View File

@ -25,7 +25,7 @@ class BcSpider extends BaseTask {
(eventConf) => { (eventConf) => {
const event = { const event = {
'eventConf': eventConf, 'eventConf': eventConf,
'info': { 'progressInfo': {
'pullCount': 0, 'pullCount': 0,
'eventCount': 0, 'eventCount': 0,
'fromBlock': 0, 'fromBlock': 0,
@ -33,9 +33,9 @@ class BcSpider extends BaseTask {
'currBlock': 0 'currBlock': 0
} }
}; };
events.push(event);
const pullBcEventService = this.createPullBcEventService(event); const pullBcEventService = this.createPullBcEventService(event);
event['pullBcEventService'] = pullBcEventService; event['pullBcEventService'] = pullBcEventService;
events.push(event);
}); });
} }