From 68d84bdaa378bd4748b6392fad31039ffb353ed8 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sun, 5 Aug 2018 18:00:15 +0200 Subject: [PATCH] Disable incStat --- cmd/hubserver/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/hubserver/main.go b/cmd/hubserver/main.go index 434b03a..44c94df 100644 --- a/cmd/hubserver/main.go +++ b/cmd/hubserver/main.go @@ -66,12 +66,12 @@ func (handler *subscriptionHandler) handlePublish(w http.ResponseWriter, r *http return err } - handler.incStat(fmt.Sprintf("publish.%s", topic)) + // handler.incStat(fmt.Sprintf("publish.%s", topic)) if subs, e := handler.Subscribers[topic]; e { for _, sub := range subs { - handler.incStat(fmt.Sprintf("publish.post.%s.%s", topic, sub.Callback)) + // handler.incStat(fmt.Sprintf("publish.post.%s.%s", topic, sub.Callback)) log.Printf("publish: creating post to %s\n", sub.Callback) postReq, err := http.NewRequest("POST", sub.Callback, strings.NewReader(string(feedContent))) if err != nil { @@ -264,7 +264,7 @@ func (handler *subscriptionHandler) ServeHTTP(w http.ResponseWriter, r *http.Req if r.Method == http.MethodGet { fmt.Fprintln(w, "WebSub hub") if r.URL.Query().Get("debug") == "1" { - handler.incStat("http.index.debug") + // handler.incStat("http.index.debug") enc := json.NewEncoder(w) enc.SetIndent("", " ") enc.Encode(handler.Subscribers)