Add timer and counter for batched write operations. #336

Closed
telackey wants to merge 1426 commits from v1.11.2-statediff-v4 into master
Showing only changes of commit 40cfe71002 - Show all commits
+1 -1
View File
@@ -358,7 +358,7 @@ func (d *Downloader) LegacySync(id string, head common.Hash, td, ttd *big.Int, m
// checks fail an error will be returned. This method is synchronous
func (d *Downloader) synchronise(id string, hash common.Hash, td, ttd *big.Int, mode SyncMode, beaconMode bool, beaconPing chan struct{}) error {
// The beacon header syncer is async. It will start this synchronization and
// will continue doing other tasks. However, if synchornization needs to be
// will continue doing other tasks. However, if synchronization needs to be
// cancelled, the syncer needs to know if we reached the startup point (and
// inited the cancel cannel) or not yet. Make sure that we'll signal even in
// case of a failure.