diff --git a/accounts/pkg/command/server.go b/accounts/pkg/command/server.go index e6ce9e7645..b5edee2db9 100644 --- a/accounts/pkg/command/server.go +++ b/accounts/pkg/command/server.go @@ -2,11 +2,8 @@ package command import ( "context" - gohttp "net/http" - _ "net/http/pprof" "os" "os/signal" - "runtime" "strings" "github.com/micro/cli/v2" @@ -112,11 +109,6 @@ func Server(cfg *config.Config) *cli.Command { cancel() }) } - runtime.SetBlockProfileRate(1) - runtime.SetMutexProfileFraction(1) - go func() { - gohttp.ListenAndServe(":8887", nil) - }() return gr.Run() }, diff --git a/accounts/pkg/server/http/server.go b/accounts/pkg/server/http/server.go index 81678a71b1..4514d412ac 100644 --- a/accounts/pkg/server/http/server.go +++ b/accounts/pkg/server/http/server.go @@ -1,12 +1,7 @@ package http import ( - _ "net/http/pprof" - - ghttp "net/http" - "github.com/go-chi/chi" - cmw "github.com/go-chi/chi/middleware" "github.com/owncloud/ocis/accounts/pkg/assets" "github.com/owncloud/ocis/accounts/pkg/proto/v0" "github.com/owncloud/ocis/accounts/pkg/version" @@ -32,9 +27,6 @@ func Server(opts ...Option) http.Service { mux := chi.NewMux() - mux.Use(func(next ghttp.Handler) ghttp.Handler { - return cmw.Profiler() - }) mux.Use(middleware.RealIP) mux.Use(middleware.RequestID) mux.Use(middleware.NoCache)