1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

Debug: use the DebugHandler interface.

Without specifying the interface, DefaultDebugHandler has to be of type
*"github.com/micro/go-micro/server/debug".debug.
This commit is contained in:
Jelmer Snoeck 2016-01-07 10:15:30 +00:00
parent 7401c44973
commit 3cefc39aff

View File

@ -18,7 +18,7 @@ type DebugHandler interface {
type debug struct{} type debug struct{}
var ( var (
DefaultDebugHandler = new(debug) DefaultDebugHandler DebugHandler = new(debug)
) )
func (d *debug) Health(ctx context.Context, req *proto.HealthRequest, rsp *proto.HealthResponse) error { func (d *debug) Health(ctx context.Context, req *proto.HealthRequest, rsp *proto.HealthResponse) error {