eth/syncer: fix lint

This commit is contained in:
Gary Rong 2025-11-12 16:31:24 +08:00
parent 0ab48f700e
commit 3e11f509b1

View file

@ -19,13 +19,13 @@ package syncer
import ( import (
"errors" "errors"
"fmt" "fmt"
"github.com/ethereum/go-ethereum/eth/ethconfig"
"sync" "sync"
"time" "time"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth" "github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/eth/ethconfig"
"github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/node" "github.com/ethereum/go-ethereum/node"
"github.com/ethereum/go-ethereum/rpc" "github.com/ethereum/go-ethereum/rpc"
@ -130,7 +130,7 @@ func (s *Syncer) run() {
} }
if resync { if resync {
if mode := s.backend.Downloader().GetSyncMode(); mode != ethconfig.FullSync { if mode := s.backend.Downloader().GetSyncMode(); mode != ethconfig.FullSync {
req.errc <- fmt.Errorf("unsupported syncmode %v", mode) req.errc <- fmt.Errorf("unsupported syncmode %v, please relaunch geth with --syncmode full", mode)
} else { } else {
req.errc <- s.backend.Downloader().BeaconDevSync(target) req.errc <- s.backend.Downloader().BeaconDevSync(target)
} }