diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2020-03-06 18:18:09 +0000 |
|---|---|---|
| committer | Paul Buetow <pbuetow@mimecast.com> | 2020-03-06 18:18:09 +0000 |
| commit | 6622def60bb96652b19e5f63185b1b9cc8b01a48 (patch) | |
| tree | 7432856bceccd966ddfd1c2e018799efd93da460 /internal/pprof | |
| parent | 56cea081dbc10c2b2937dc395911d084179ec69f (diff) | |
make Mr. Lint happy
Diffstat (limited to 'internal/pprof')
| -rw-r--r-- | internal/pprof/pprof.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/internal/pprof/pprof.go b/internal/pprof/pprof.go deleted file mode 100644 index c6d11ca..0000000 --- a/internal/pprof/pprof.go +++ /dev/null @@ -1,18 +0,0 @@ -package pprof - -import ( - "fmt" - "net/http" - _ "net/http" - _ "net/http/pprof" - - "github.com/mimecast/dtail/internal/config" - "github.com/mimecast/dtail/internal/io/logger" -) - -// Start the profiler HTTP server. -func Start() { - bindAddr := fmt.Sprintf("%s:%d", config.Common.PProfBindAddress, config.Common.PProfPort) - logger.Info("Starting PProf server", bindAddr) - go http.ListenAndServe(bindAddr, nil) -} |
