From f84bbd4520950e920db61f5927955a8a86fd469b Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Tue, 25 Aug 2020 12:50:59 -0700 Subject: [PATCH] Fix more lint warnings. This way we can keep CI green. --- cli/mpool.go | 1 + cmd/lotus-fountain/main.go | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/cli/mpool.go b/cli/mpool.go index d508c93fe..587246b87 100644 --- a/cli/mpool.go +++ b/cli/mpool.go @@ -106,6 +106,7 @@ var mpoolClear = &cli.Command{ really := cctx.Bool("really-do-it") if !really { + //nolint:golint return fmt.Errorf("--really-do-it must be specified for this action to have an effect; you have been warned") } diff --git a/cmd/lotus-fountain/main.go b/cmd/lotus-fountain/main.go index cfb498ac9..ea7190e83 100644 --- a/cmd/lotus-fountain/main.go +++ b/cmd/lotus-fountain/main.go @@ -10,7 +10,6 @@ import ( rice "github.com/GeertJohan/go.rice" logging "github.com/ipfs/go-log/v2" - "github.com/libp2p/go-libp2p-core/peer" "github.com/urfave/cli/v2" "golang.org/x/xerrors" @@ -131,10 +130,7 @@ type handler struct { from address.Address sendPerRequest types.FIL - limiter *Limiter - minerLimiter *Limiter - - defaultMinerPeer peer.ID + limiter *Limiter } func (h *handler) send(w http.ResponseWriter, r *http.Request) {