Skip to content

Commit

Permalink
refactor: Moving pprof import in the right package
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed May 4, 2024
1 parent 20c0cf6 commit eed8d3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import (
"embed"
"syscall"

_ "net/http/pprof"

"github.com/ViBiOh/httputils/v4/pkg/alcotest"
"github.com/ViBiOh/httputils/v4/pkg/cors"
"github.com/ViBiOh/httputils/v4/pkg/httputils"
Expand Down
2 changes: 2 additions & 0 deletions pkg/pprof/pprof.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import (
"runtime/pprof"
"time"

_ "net/http/pprof"

"github.com/ViBiOh/flags"
"github.com/ViBiOh/httputils/v4/pkg/recoverer"
"github.com/ViBiOh/httputils/v4/pkg/request"
Expand Down

0 comments on commit eed8d3d

Please sign in to comment.