Dont be stupid -- stream does not require pointer.
This commit is contained in:
		| @@ -8,15 +8,15 @@ import ( | |||||||
| 	proto "github.com/micro/go-micro/debug/proto" | 	proto "github.com/micro/go-micro/debug/proto" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| type Debug struct { |  | ||||||
| 	proto.DebugHandler |  | ||||||
| 	started int64 |  | ||||||
| } |  | ||||||
|  |  | ||||||
| var ( | var ( | ||||||
|  | 	// DefaultHandler is default debug handler | ||||||
| 	DefaultHandler = newDebug() | 	DefaultHandler = newDebug() | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | type Debug struct { | ||||||
|  | 	started int64 | ||||||
|  | } | ||||||
|  |  | ||||||
| func newDebug() *Debug { | func newDebug() *Debug { | ||||||
| 	return &Debug{ | 	return &Debug{ | ||||||
| 		started: time.Now().Unix(), | 		started: time.Now().Unix(), | ||||||
| @@ -40,6 +40,6 @@ func (d *Debug) Stats(ctx context.Context, req *proto.StatsRequest, rsp *proto.S | |||||||
| 	return nil | 	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 | 	return nil | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user