undo pprof endpoint

This commit is contained in:
A.Unger
2020-12-02 16:07:04 +01:00
parent 0e322f518d
commit c1dcfb655f
2 changed files with 0 additions and 16 deletions

View File

@@ -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()
},

View File

@@ -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)