1
This commit is contained in:
parent
89ce413a64
commit
8aef9b9cc2
@ -99,23 +99,19 @@ class BcRefresh extends BaseTask {
|
|||||||
return refresherService;
|
return refresherService;
|
||||||
}
|
}
|
||||||
|
|
||||||
async outputProgressInfo(net, events) {
|
async outputProgressInfo(net, refreshers) {
|
||||||
let count = 0;
|
let count = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
log.info('----------------------------------------------------------');
|
log.info('----------------------------------------------------------');
|
||||||
events.forEach
|
refreshers.forEach
|
||||||
(
|
(
|
||||||
(event) => {
|
(refresher) => {
|
||||||
const eventConf = event['eventConf'];
|
const conf = refresher['conf'];
|
||||||
const progInfo = event['progressInfo'];
|
const progInfo = refresher['progressInfo'];
|
||||||
const logObj = 'net_id: ' + net['net_id'] + ' ' +
|
const logObj = 'net_id: ' + net['net_id'] + ' ' +
|
||||||
eventConf['contract_name'] + '.' +
|
conf['contract_name'] + '.' +
|
||||||
eventConf['event_name'] + ' ' +
|
' refreshedCount:' + progInfo['refreshedCount'] +
|
||||||
' pullCount:' + progInfo['pullCount'] +
|
' pullCount:' + progInfo['pullCount']
|
||||||
' eventCount:' + progInfo['eventCount'] +
|
|
||||||
' fromBlock:' + progInfo['fromBlock'] +
|
|
||||||
' toBlock:' + progInfo['toBlock'] +
|
|
||||||
' currBlock:' + progInfo['currBlock']
|
|
||||||
;
|
;
|
||||||
log.info(logObj);
|
log.info(logObj);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user