Remove pprof

This commit is contained in:
Ben Sarmiento
2023-11-28 01:46:56 +01:00
parent 1f91d70420
commit 8f33cad025

View File

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