mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 12:46:44 +00:00
Update history_indexer.go
This commit is contained in:
parent
795a7ab58a
commit
94373af89d
1 changed files with 3 additions and 2 deletions
|
|
@ -608,8 +608,9 @@ func (i *indexIniter) index(done chan struct{}, interrupt *atomic.Int32, lastID
|
||||||
left = lastID - current + 1
|
left = lastID - current + 1
|
||||||
done = current - beginID
|
done = current - beginID
|
||||||
)
|
)
|
||||||
eta := common.CalculateETA(done, left, time.Since(start))
|
elapsed := time.Since(start)
|
||||||
i.log.Info("Indexing history", "processed", done, "left", left, "elapsed", common.PrettyDuration(time.Since(start)), "eta", common.PrettyDuration(eta))
|
eta := common.CalculateETA(done, left, elapsed)
|
||||||
|
i.log.Info("Indexing history", "processed", done, "left", left, "elapsed", common.PrettyDuration(elapsed), "eta", common.PrettyDuration(eta))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
i.indexed.Store(current - 1) // update indexing progress
|
i.indexed.Store(current - 1) // update indexing progress
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue