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:
parent
7401c44973
commit
3cefc39aff
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user