Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Jan 18, 2025
1 parent 03575f4 commit e927b78
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions eth/stagedsync/stage_finish.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package stagedsync
import (
"context"
"encoding/binary"
"time"

libcommon "github.com/erigontech/erigon-lib/common"
"github.com/erigontech/erigon-lib/common/hexutility"
Expand Down Expand Up @@ -132,7 +131,6 @@ func PruneFinish(u *PruneState, tx kv.RwTx, cfg FinishCfg, ctx context.Context)

// [from,to)
func NotifyNewHeaders(ctx context.Context, notifyFrom, notifyTo uint64, notifier ChainEventNotifier, tx kv.Tx, logger log.Logger) error {
t := time.Now()
if notifier == nil {
logger.Trace("RPC Daemon notification channel not set. No headers notifications will be sent")
return nil
Expand All @@ -159,8 +157,7 @@ func NotifyNewHeaders(ctx context.Context, notifyFrom, notifyTo uint64, notifier

if len(headersRlp) > 0 {
notifier.OnNewHeader(headersRlp)
headerTiming := time.Since(t)
logger.Debug("RPC Daemon notified of new headers", "from", notifyFrom-1, "to", notifyTo, "amount", len(headersRlp), "header sending", headerTiming)
logger.Debug("RPC Daemon notified of new headers", "from", notifyFrom-1, "to", notifyTo, "amount", len(headersRlp))
}
return nil
}

0 comments on commit e927b78

Please sign in to comment.