aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/main.go b/main.go
index 777bd1f..cdf538c 100644
--- a/main.go
+++ b/main.go
@@ -11,7 +11,6 @@ import (
"syscall"
"go.lindenii.runxiyu.org/lindenii-common/clog"
- _ "net/http/pprof"
)
func main() {
@@ -94,17 +93,5 @@ func main() {
}
}()
- // Pprof listener
- pprofListener, err := net.Listen("tcp", "localhost:6060")
- if err != nil {
- clog.Fatal(1, "Listening pprof: "+err.Error())
- }
- clog.Info("Listening pprof on tcp localhost:6060")
- go func() {
- if err = http.Serve(pprofListener, nil); err != nil {
- clog.Fatal(1, "Serving pprof: "+err.Error())
- }
- }()
-
select {}
}