diff --git a/internal/mempool/reactor.go b/internal/mempool/reactor.go index 88e69454f..3f62f958e 100644 --- a/internal/mempool/reactor.go +++ b/internal/mempool/reactor.go @@ -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) diff --git a/internal/mempool/reactor_test.go b/internal/mempool/reactor_test.go index d857c68e1..691324e72 100644 --- a/internal/mempool/reactor_test.go +++ b/internal/mempool/reactor_test.go @@ -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) @@ -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") } diff --git a/internal/mempool/types.go b/internal/mempool/types.go index 28b3dc7f3..48dc52041 100644 --- a/internal/mempool/types.go +++ b/internal/mempool/types.go @@ -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 }