From 396162337385117db2cad0b28ebc639158fa957f Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Sat, 23 Feb 2019 19:04:12 -0700 Subject: [PATCH] whoops --- config/config.go | 2 -- config/new.go | 1 - server/server.go | 1 - vendor/vendor.json | 12 ++++++++++++ 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/config/config.go b/config/config.go index 20f6043..6038446 100644 --- a/config/config.go +++ b/config/config.go @@ -2,7 +2,6 @@ package config import ( "local/rproxy3/storage/packable" - "log" "strconv" "strings" ) @@ -72,7 +71,6 @@ func GetTimeout() int { conf.Get(nsConf, flagTimeout, t) timeout, _ := strconv.Atoi(t.String()) - log.Printf("TIMEOUT t:%q, i:%v", t.String(), timeout) return timeout } diff --git a/config/new.go b/config/new.go index 65879fc..87d3ff6 100644 --- a/config/new.go +++ b/config/new.go @@ -119,7 +119,6 @@ func fromFlags() error { for _, bind := range binds { confFlag := flag.Lookup(bind.flag) - log.Printf("flag:%v", confFlag) if confFlag == nil || confFlag.Value.String() == "" { continue } diff --git a/server/server.go b/server/server.go index 58e8395..0ea0ee4 100644 --- a/server/server.go +++ b/server/server.go @@ -87,7 +87,6 @@ func (s *Server) doAuth(foo http.HandlerFunc) http.HandlerFunc { func (s *Server) Pre(foo http.HandlerFunc) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { ctx, can := context.WithTimeout(r.Context(), time.Second*time.Duration(config.GetTimeout())) - log.Printf("context iwth tiemout: %v", time.Second*time.Duration(config.GetTimeout())) defer can() if err := s.limiter.Wait(ctx); err != nil { w.WriteHeader(http.StatusTooManyRequests) diff --git a/vendor/vendor.json b/vendor/vendor.json index 1ef8184..a7d539f 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -2,6 +2,18 @@ "comment": "", "ignore": "test", "package": [ + { + "checksumSHA1": "GtamqiJoL7PGHsN454AoffBFMa8=", + "path": "golang.org/x/net/context", + "revision": "65e2d4e15006aab9813ff8769e768bbf4bb667a0", + "revisionTime": "2019-02-01T23:59:58Z" + }, + { + "checksumSHA1": "HoCvrd3hEhsFeBOdEw7cbcfyk50=", + "path": "golang.org/x/time/rate", + "revision": "fbb02b2291d28baffd63558aa44b4b56f178d650", + "revisionTime": "2018-04-12T16:56:04Z" + }, { "checksumSHA1": "QqDq2x8XOU7IoOR98Cx1eiV5QY8=", "path": "gopkg.in/yaml.v2",