cmd/dht-get-peers/main.go | 1 - util/profile/profile.go | 19 ------------------- diff --git a/cmd/dht-get-peers/main.go b/cmd/dht-get-peers/main.go index f03e9fd1c721bbf1a92fd7143e03d9b427b3f9e0..a63cd52ec2cb380535d8665066ec8156fb45d5e2 100644 --- a/cmd/dht-get-peers/main.go +++ b/cmd/dht-get-peers/main.go @@ -12,7 +12,6 @@ _ "github.com/anacrolix/envpprof" "github.com/anacrolix/torrent/dht" - _ "github.com/anacrolix/torrent/util/profile" ) var ( diff --git a/util/profile/profile.go b/util/profile/profile.go deleted file mode 100644 index 74bfae6ef4c1c011563d36f40b0dd85866dd24ce..0000000000000000000000000000000000000000 --- a/util/profile/profile.go +++ /dev/null @@ -1,19 +0,0 @@ -package profile - -import ( - "log" - "net/http" - _ "net/http/pprof" - "os" -) - -func init() { - if httpAddr := os.Getenv("GOPROF"); httpAddr != "" { - go func() { - err := http.ListenAndServe(httpAddr, nil) - if err != nil { - log.Print(err) - } - }() - } -}