Revert "Remove pprof"

This reverts commit 8f33cad025.
This commit is contained in:
Ben Sarmiento
2023-11-28 19:40:44 +00:00
parent ee766dba6a
commit e7e5806b20

View File

@@ -15,6 +15,8 @@ import (
zurghttp "github.com/debridmediamanager.com/zurg/pkg/http"
"github.com/debridmediamanager.com/zurg/pkg/logutil"
"github.com/debridmediamanager.com/zurg/pkg/realdebrid"
_ "net/http/pprof"
)
func main() {
@@ -55,6 +57,10 @@ func main() {
downloadClient := zurghttp.NewHTTPClient(config.GetToken(), config.GetRetriesUntilFailed(), 0, config, log.Named("dlclient"))
getfile := universal.NewGetFile(downloadClient)
go func() {
http.ListenAndServe("localhost:6060", nil)
}()
mux := http.NewServeMux()
net.Router(mux, getfile, config, torrentMgr, log.Named("net"))