Skip to content

Commit

Permalink
Removed pprof (#274)
Browse files Browse the repository at this point in the history
This reverts #246 and fixes #247
  • Loading branch information
mhutchinson authored Mar 21, 2024
1 parent e14e19c commit 78de265
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions trusted_applet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ import (
"runtime"
"sync"

// TODO: remove
"net/http/pprof"
"strings"
"time"

Expand Down Expand Up @@ -363,10 +361,6 @@ func runWithNetworking(ctx context.Context) error {
go func() {
srvMux := http.NewServeMux()
srvMux.Handle("/metrics", promhttp.Handler())
srvMux.HandleFunc("/debug/pprof/", pprof.Index)
srvMux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
srvMux.HandleFunc("/debug/pprof/profile", pprof.Profile)
srvMux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
srv := &http.Server{
ReadTimeout: 5 * time.Second,
WriteTimeout: 10 * time.Second,
Expand Down

0 comments on commit 78de265

Please sign in to comment.