瀏覽代碼

Disable profiling

DarthSim 6 年之前
父節點
當前提交
d6f5559fa7
共有 1 個文件被更改,包括 0 次插入6 次删除
  1. 0 6
      main.go

+ 0 - 6
main.go

@@ -1,11 +1,9 @@
 package main
 package main
 
 
 import (
 import (
-	"log"
 	"os"
 	"os"
 	"os/signal"
 	"os/signal"
 
 
-	"net/http"
 	_ "net/http/pprof"
 	_ "net/http/pprof"
 )
 )
 
 
@@ -14,10 +12,6 @@ const version = "2.0.0"
 type ctxKey string
 type ctxKey string
 
 
 func main() {
 func main() {
-	go func() {
-		log.Println(http.ListenAndServe("localhost:6060", nil))
-	}()
-
 	s := startServer()
 	s := startServer()
 
 
 	stop := make(chan os.Signal, 1)
 	stop := make(chan os.Signal, 1)