From b7ee22d993d674a2407b4c259d541c0c8bc25d6e Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Tue, 6 Aug 2019 17:53:14 +0100 Subject: [PATCH] Add monitor/debug packages --- debug.go | 10 ---------- grpc.go | 1 - options.go | 5 ----- 3 files changed, 16 deletions(-) delete mode 100644 debug.go diff --git a/debug.go b/debug.go deleted file mode 100644 index 782b8b1..0000000 --- a/debug.go +++ /dev/null @@ -1,10 +0,0 @@ -package grpc - -import ( - "github.com/micro/go-micro/server" - "github.com/micro/go-micro/server/debug" -) - -func registerDebugHandler(s server.Server) { - s.Handle(s.NewHandler(&debug.Debug{s.Options().DebugHandler}, server.InternalHandler(true))) -} diff --git a/grpc.go b/grpc.go index de28304..2aefc6f 100644 --- a/grpc.go +++ b/grpc.go @@ -700,7 +700,6 @@ func (g *grpcServer) Deregister() error { } func (g *grpcServer) Start() error { - registerDebugHandler(g) config := g.opts // micro: config.Transport.Listen(config.Address) diff --git a/options.go b/options.go index 4a3bef1..c57c022 100644 --- a/options.go +++ b/options.go @@ -8,7 +8,6 @@ import ( "github.com/micro/go-micro/codec" "github.com/micro/go-micro/registry" "github.com/micro/go-micro/server" - "github.com/micro/go-micro/server/debug" "github.com/micro/go-micro/transport" "google.golang.org/grpc" "google.golang.org/grpc/encoding" @@ -89,10 +88,6 @@ func newOptions(opt ...server.Option) server.Options { opts.Transport = transport.DefaultTransport } - if opts.DebugHandler == nil { - opts.DebugHandler = debug.DefaultHandler - } - if len(opts.Address) == 0 { opts.Address = server.DefaultAddress }