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{}
var (
DefaultDebugHandler = new(debug)
DefaultDebugHandler DebugHandler = new(debug)
)
func (d *debug) Health(ctx context.Context, req *proto.HealthRequest, rsp *proto.HealthResponse) error {