This commit is contained in:
aozhiwei 2023-07-03 15:47:41 +08:00
parent 1cb5788f41
commit 06c38e743d

View File

@ -34,18 +34,22 @@ class BcSpider extends BaseTask {
} }
}; };
events.push(event); events.push(event);
const pullBcEventService = this.createPullBcEventService(net, event); this.createPullBcEventService(net, event);
event['pullBcEventService'] = pullBcEventService;
}); });
} }
createPullBcEventService(net, event) { createPullBcEventService(net, event) {
const bc = serviceFactory.create('BlockChain'); const bc = serviceFactory.create('BlockChain');
const pullBcEventService = serviceFactory.create('PullBcEvent'); const pullBcEventService = serviceFactory.create('PullBcEvent');
event['pullBcEventService'] = pullBcEventService;
pullBcEventService.init(bc, net, event); pullBcEventService.init(bc, net, event);
return pullBcEventService; return pullBcEventService;
} }
outputProgressInfo() {
}
} }
module.exports = BcSpider; module.exports = BcSpider;