From 3a206d4f12c47db33fa7f86dc3cc1ff11af550cf Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 31 Jan 2016 18:35:51 +1100 Subject: [PATCH] util/profile was replaced by github.com/anacrolix/envpprof --- cmd/dht-get-peers/main.go | 1 - util/profile/profile.go | 19 ------------------- 2 files changed, 20 deletions(-) delete mode 100644 util/profile/profile.go diff --git a/cmd/dht-get-peers/main.go b/cmd/dht-get-peers/main.go index f03e9fd1..a63cd52e 100644 --- a/cmd/dht-get-peers/main.go +++ b/cmd/dht-get-peers/main.go @@ -12,7 +12,6 @@ import ( _ "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 74bfae6e..00000000 --- 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) - } - }() - } -}