From f358af6f5663c893c252e64a5c2d6dc98a4428fc Mon Sep 17 00:00:00 2001 From: Aayush Rajasekaran Date: Tue, 16 Feb 2021 19:19:27 -0500 Subject: [PATCH] Fix typo --- cmd/lotus-fountain/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/lotus-fountain/main.go b/cmd/lotus-fountain/main.go index 1114ad07e..79f08aa83 100644 --- a/cmd/lotus-fountain/main.go +++ b/cmd/lotus-fountain/main.go @@ -112,7 +112,7 @@ var runCmd = &cli.Command{ WalletRate: 15 * time.Minute, WalletBurst: 2, }), - recapTreshold: cctx.Float64("captcha-threshold"), + recapThreshold: cctx.Float64("captcha-threshold"), } box := rice.MustFindBox("site") @@ -148,8 +148,8 @@ type handler struct { from address.Address sendPerRequest types.FIL - limiter *Limiter - recapTreshold float64 + limiter *Limiter + recapThreshold float64 } func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { @@ -172,7 +172,7 @@ func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { http.Error(w, err.Error(), http.StatusBadGateway) return } - if !capResp.Success || capResp.Score < h.recapTreshold { + if !capResp.Success || capResp.Score < h.recapThreshold { log.Infow("spam", "capResp", capResp) http.Error(w, "spam protection", http.StatusUnprocessableEntity) return