change comment

This commit is contained in:
maskpp 2025-08-03 12:21:33 +08:00
parent 2034bf5da4
commit aee0c4daff

View file

@ -119,7 +119,7 @@ func (s *Syncer) run() {
retries++ retries++
continue continue
} }
// If the remote number is equal or bigger to the target, we don't need to resync. // If the target number is smaller than the remote number, we don't need to sync.
if target != nil && header.Number.Cmp(target.Number) <= 0 { if target != nil && header.Number.Cmp(target.Number) <= 0 {
log.Info("Syncer already synced", "hash", req.hash, "target", target) log.Info("Syncer already synced", "hash", req.hash, "target", target)
req.errc <- nil req.errc <- nil