eth/protocols/snap: fix log

This commit is contained in:
Gary Rong 2025-07-23 14:39:30 +08:00
parent 3d80bed231
commit 17e016fc57

View file

@ -692,8 +692,8 @@ func (s *Syncer) Sync(root common.Hash, cancel chan struct{}) error {
// pivot states (e.g., if chain sync takes longer). The initial healing // pivot states (e.g., if chain sync takes longer). The initial healing
// phase is more important for us. // phase is more important for us.
stateHealTimeResettingTimer.Update(time.Since(s.healStartTime)) stateHealTimeResettingTimer.Update(time.Since(s.healStartTime))
s.healStartTime = time.Time{} // zero the start time
log.Info("State healing phase is completed", "elapsed", common.PrettyDuration(time.Since(s.healStartTime))) log.Info("State healing phase is completed", "elapsed", common.PrettyDuration(time.Since(s.healStartTime)))
s.healStartTime = time.Time{} // zero the start time
return nil return nil
} }
// Assign all the data retrieval tasks to any free peers // Assign all the data retrieval tasks to any free peers