Skip to content

Commit

Permalink
pprof in localhost:6060
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Jul 17, 2024
1 parent c55e0e2 commit 08fed46
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,12 @@ func main() {
}()

go func() {
log.Info().Msg("Starting pprof server")
http.ListenAndServe("0.0.0.0:6060", nil)
http.ListenAndServe("localhost:6060", nil)
}()

r := chi.NewRouter()
r.Use(middleware.Recoverer)
r.Use(middleware.StripSlashes)
r.Mount("/debug", middleware.Profiler())

r.Get("/tv/{postID}", handlers.Embed)
r.Get("/reel/{postID}", handlers.Embed)
Expand Down

0 comments on commit 08fed46

Please # to comment.