liuxiulin 1 月之前
父节点
当前提交
ea22db33b7
共有 1 个文件被更改,包括 7 次插入8 次删除
  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)