From ffdfe3985c227c798d02def443c8c71a8a7f82e8 Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Sun, 16 Jul 2017 18:12:39 +0200 Subject: [PATCH] remove traces --- go-http/httpfastcache.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/go-http/httpfastcache.go b/go-http/httpfastcache.go index dd09c42..df48e8b 100644 --- a/go-http/httpfastcache.go +++ b/go-http/httpfastcache.go @@ -47,7 +47,6 @@ func commentsCount(w http.ResponseWriter, r *http.Request) { } // relay request to stacosys - fmt.Println("QUERY: " + config.Stacosys + r.URL.String()) response, err := http.Get(config.Stacosys + r.URL.String()) if err != nil { http.NotFound(w, r) @@ -62,7 +61,7 @@ func commentsCount(w http.ResponseWriter, r *http.Request) { // cache body and return response countCache.Set(r.URL.String(), string(body), cache.DefaultExpiration) - fmt.Printf(string(body)) + //fmt.Printf(string(body)) w.Write(body) } @@ -80,7 +79,7 @@ func main() { json.Unmarshal(file, &config) fmt.Printf("config: %s\n", string(file)) - http.HandleFunc("/comments/count/", commentsCount) + //http.HandleFunc("/comments/count/", commentsCount) http.HandleFunc("/comments/count", commentsCount) http.ListenAndServe(config.HostPort, nil) }