Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Mar 13, 2024
1 parent 4a4e28b commit 8e527cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/mempool/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func NewReactor(
p2pClient: p2pClient,
peerEvents: peerEvents,
peerRoutines: make(map[types.NodeID]context.CancelFunc),
observePanic: func(i interface{}) {},
observePanic: func(_i interface{}) {},
}

r.BaseService = *service.NewBaseService(logger, "Mempool", r)
Expand Down
4 changes: 2 additions & 2 deletions internal/mempool/reactor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func setupReactors(ctx context.Context, t *testing.T, logger log.Logger, numNode
cfg.Mempool,
mempool,
rts.network.Nodes[nodeID].Client,
func(ctx context.Context, n string) *p2p.PeerUpdates { return rts.peerUpdates[nodeID] },
func(_ctx context.Context, _n string) *p2p.PeerUpdates { return rts.peerUpdates[nodeID] },
)
rts.nodes = append(rts.nodes, nodeID)

Expand Down Expand Up @@ -146,7 +146,7 @@ func TestReactorBroadcastDoesNotPanic(t *testing.T) {
logger := log.NewNopLogger()
rts := setupReactors(ctx, t, logger, numNodes, 0)

observePanic := func(r interface{}) {
observePanic := func(_r interface{}) {
t.Fatal("panic detected in reactor")
}

Expand Down
2 changes: 1 addition & 1 deletion internal/mempool/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func PreCheckMaxBytes(maxBytes int64) PreCheckFunc {
// PostCheckMaxGas checks that the wanted gas is smaller or equal to the passed
// maxGas. Returns nil if maxGas is -1.
func PostCheckMaxGas(maxGas int64) PostCheckFunc {
return func(tx types.Tx, res *abci.ResponseCheckTx) error {
return func(_tx types.Tx, res *abci.ResponseCheckTx) error {
if maxGas == -1 {
return nil
}
Expand Down

0 comments on commit 8e527cd

Please sign in to comment.