Dont be stupid -- stream does not require pointer.

This commit is contained in:
Milos Gajdos 2019-11-26 17:04:44 +00:00
parent 4e965e4ce5
commit 3f7f2afc7b
No known key found for this signature in database
GPG Key ID: 8B31058CC55DFD4F

View File

@ -8,15 +8,15 @@ import (
proto "github.com/micro/go-micro/debug/proto"
)
type Debug struct {
proto.DebugHandler
started int64
}
var (
// DefaultHandler is default debug handler
DefaultHandler = newDebug()
)
type Debug struct {
started int64
}
func newDebug() *Debug {
return &Debug{
started: time.Now().Unix(),
@ -40,6 +40,6 @@ func (d *Debug) Stats(ctx context.Context, req *proto.StatsRequest, rsp *proto.S
return nil
}
func (d *Debug) Log(ctx context.Context, req *proto.LogRequest, rsp *proto.Debug_LogStream) error {
func (d *Debug) Log(ctx context.Context, req *proto.LogRequest, rsp proto.Debug_LogStream) error {
return nil
}