liuxiulin hai 1 mes
pai
achega
5da45381de
Modificáronse 1 ficheiros con 7 adicións e 8 borrados
  1. 7 8
      services/mqttaccess/main.go

+ 7 - 8
services/mqttaccess/main.go

@@ -2,7 +2,6 @@ package main
 
 import (
 	"github.com/prometheus/client_golang/prometheus"
-	"net/http"
 	_ "net/http/pprof"
 	"sparrow/pkg/rpcs"
 	"sparrow/pkg/server"
@@ -13,13 +12,13 @@ var deviceMessageCount *prometheus.CounterVec
 
 func main() {
 
-	go func() {
-		pprofPort := "6060"
-		server.Log.Infof("pprof server started at :%s/debug/pprof", pprofPort)
-		if err := http.ListenAndServe(":"+pprofPort, nil); err != nil {
-			server.Log.Errorf("pprof server failed: %v", err)
-		}
-	}()
+	//go func() {
+	//	pprofPort := "6060"
+	//	server.Log.Infof("pprof server started at :%s/debug/pprof", pprofPort)
+	//	if err := http.ListenAndServe(":"+pprofPort, nil); err != nil {
+	//		server.Log.Errorf("pprof server failed: %v", err)
+	//	}
+	//}()
 
 	// init server
 	err := server.Init(rpcs.MQTTAccessName)