mirror of
https://github.com/imgproxy/imgproxy.git
synced 2024-11-24 08:12:38 +02:00
Require pprof build tag to enable net/pprof
This commit is contained in:
parent
3ae859162f
commit
518607f259
9
main.go
9
main.go
@ -7,9 +7,6 @@ import (
|
||||
"runtime/debug"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"net/http"
|
||||
_ "net/http/pprof"
|
||||
)
|
||||
|
||||
const version = "2.2.13"
|
||||
@ -43,12 +40,6 @@ func main() {
|
||||
}
|
||||
}()
|
||||
|
||||
if len(os.Getenv("IMGPROXY_PPROF_BIND")) > 0 {
|
||||
go func() {
|
||||
http.ListenAndServe(os.Getenv("IMGPROXY_PPROF_BIND"), nil)
|
||||
}()
|
||||
}
|
||||
|
||||
s := startServer()
|
||||
|
||||
stop := make(chan os.Signal, 1)
|
||||
|
Loading…
Reference in New Issue
Block a user