mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
eth/syncer: fix lint
This commit is contained in:
parent
0ab48f700e
commit
3e11f509b1
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue