mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
Enable staticcheck linter (#5084)
This commit is contained in:
parent
8460fd8e25
commit
ad865ac758
@ -10,7 +10,7 @@ linters:
|
||||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
# - staticcheck # 1.18
|
||||
- staticcheck
|
||||
# - structcheck # 1.18
|
||||
# - unused # 1.18
|
||||
- varcheck
|
||||
|
@ -238,7 +238,7 @@ func EmbeddedServices(ctx context.Context, dirs datadir.Dirs, erigonDB kv.RoDB,
|
||||
mining = direct.NewMiningClient(miningServer)
|
||||
ff = rpchelper.New(ctx, eth, txPool, mining, func() {})
|
||||
|
||||
if snapshots != nil && snapshots.Cfg().Enabled {
|
||||
if snapshots != nil && snapshots.Cfg().Enabled { // nolint: staticcheck
|
||||
/*
|
||||
txNums = make([]uint64, snapshots.BlocksAvailable()+1)
|
||||
if err = snapshots.Bodies.View(func(bs []*snapshotsync.BodySegment) error {
|
||||
|
Loading…
Reference in New Issue
Block a user