1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-11-23 21:44:41 +02:00

strip debug handler (#2532)

* strip debug handler

* fix tests
This commit is contained in:
Asim Aslam
2022-07-22 20:03:27 +01:00
committed by GitHub
parent a8224e1c67
commit 28f36e8fd6
3 changed files with 9 additions and 10 deletions

View File

@@ -8,7 +8,6 @@ import (
"sync"
"go-micro.dev/v4/client"
"go-micro.dev/v4/debug/handler"
"go-micro.dev/v4/logger"
plugin "go-micro.dev/v4/plugins"
"go-micro.dev/v4/server"
@@ -153,14 +152,6 @@ func (s *service) Run() (err error) {
}
}
// register the debug handler
s.opts.Server.Handle(
s.opts.Server.NewHandler(
handler.NewHandler(s.opts.Client),
server.InternalHandler(true),
),
)
// start the profiler
if s.opts.Profile != nil {
// to view mutex contention