Skip to content

Commit

Permalink
Ignore gocritic lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ImTei committed Apr 17, 2024
1 parent 4878620 commit a383d0c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions eth/stagedsync/bor_heimdall_shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func fetchRequiredHeimdallSpansIfNeeded(
ctx context.Context,
toBlockNum uint64,
tx kv.RwTx,
cfg BorHeimdallCfg,
cfg BorHeimdallCfg, //nolint:gocritic
logPrefix string,
logger log.Logger,
) (uint64, error) {
Expand Down Expand Up @@ -181,7 +181,7 @@ func fetchRequiredHeimdallStateSyncEventsIfNeeded(
ctx context.Context,
header *types.Header,
tx kv.RwTx,
cfg BorHeimdallCfg,
cfg BorHeimdallCfg, //nolint:gocritic
logPrefix string,
logger log.Logger,
lastStateSyncEventIDGetter func() (uint64, error),
Expand All @@ -205,7 +205,7 @@ func fetchAndWriteHeimdallStateSyncEvents(
header *types.Header,
lastStateSyncEventID uint64,
tx kv.RwTx,
cfg BorHeimdallCfg,
cfg BorHeimdallCfg, //nolint:gocritic
logPrefix string,
logger log.Logger,
) (uint64, int, time.Duration, error) {
Expand Down
2 changes: 1 addition & 1 deletion eth/stagedsync/default_stages.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
func DefaultStages(ctx context.Context,
snapshots SnapshotsCfg,
headers HeadersCfg,
borHeimdallCfg BorHeimdallCfg,
borHeimdallCfg BorHeimdallCfg, //nolint:gocritic
blockHashCfg BlockHashesCfg,
bodies BodiesCfg,
senders SendersCfg,
Expand Down
6 changes: 3 additions & 3 deletions eth/stagedsync/stage_bor_heimdall.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func BorHeimdallForward(
u Unwinder,
ctx context.Context,
tx kv.RwTx,
cfg BorHeimdallCfg,
cfg BorHeimdallCfg, //nolint:gocritic
logger log.Logger,
) (err error) {
processStart := time.Now()
Expand Down Expand Up @@ -574,7 +574,7 @@ func checkBorHeaderExtraData(chr consensus.ChainHeaderReader, header *types.Head
return nil
}

func BorHeimdallUnwind(u *UnwindState, ctx context.Context, s *StageState, tx kv.RwTx, cfg BorHeimdallCfg) (err error) {
func BorHeimdallUnwind(u *UnwindState, ctx context.Context, s *StageState, tx kv.RwTx, cfg BorHeimdallCfg) (err error) { //nolint:gocritic
if cfg.borConfig == nil {
return
}
Expand Down Expand Up @@ -647,7 +647,7 @@ func BorHeimdallUnwind(u *UnwindState, ctx context.Context, s *StageState, tx kv
return
}

func BorHeimdallPrune(s *PruneState, ctx context.Context, tx kv.RwTx, cfg BorHeimdallCfg) (err error) {
func BorHeimdallPrune(s *PruneState, ctx context.Context, tx kv.RwTx, cfg BorHeimdallCfg) (err error) { //nolint:gocritic
if cfg.borConfig == nil {
return
}
Expand Down
2 changes: 1 addition & 1 deletion eth/stagedsync/stage_mining_bor_heimdall.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

func MiningBorHeimdallForward(
ctx context.Context,
cfg BorHeimdallCfg,
cfg BorHeimdallCfg, //nolint:gocritic
stageStage *StageState,
unwinder Unwinder,
tx kv.RwTx,
Expand Down
2 changes: 1 addition & 1 deletion eth/stagedsync/stagebuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type ChainEventNotifier interface {
func MiningStages(
ctx context.Context,
createBlockCfg MiningCreateBlockCfg,
borHeimdallCfg BorHeimdallCfg,
borHeimdallCfg BorHeimdallCfg, //nolint:gocritic
execCfg MiningExecCfg,
hashStateCfg HashStateCfg,
trieCfg TrieCfg,
Expand Down

0 comments on commit a383d0c

Please sign in to comment.