1
This commit is contained in:
parent
1cb5788f41
commit
06c38e743d
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user