go fmt
This commit is contained in:
		| @@ -17,16 +17,6 @@ type debugClient struct { | |||||||
| 	Client pb.DebugService | 	Client pb.DebugService | ||||||
| } | } | ||||||
|  |  | ||||||
| // NewClient provides a debug client |  | ||||||
| func NewClient(name string) *debugClient { |  | ||||||
| 	// create default client |  | ||||||
| 	cli := client.DefaultClient |  | ||||||
|  |  | ||||||
| 	return &debugClient{ |  | ||||||
| 		Client: pb.NewDebugService(name, cli), |  | ||||||
| 	} |  | ||||||
| } |  | ||||||
|  |  | ||||||
| // Logs queries the services logs and returns a channel to read the logs from | // Logs queries the services logs and returns a channel to read the logs from | ||||||
| func (d *debugClient) Log(since time.Time, count int, stream bool) (log.Stream, error) { | func (d *debugClient) Log(since time.Time, count int, stream bool) (log.Stream, error) { | ||||||
| 	req := &pb.LogRequest{} | 	req := &pb.LogRequest{} | ||||||
| @@ -86,3 +76,13 @@ func (d *debugClient) streamLogs(lg *logStream, stream pb.Debug_LogService) { | |||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // NewClient provides a debug client | ||||||
|  | func NewClient(name string) *debugClient { | ||||||
|  | 	// create default client | ||||||
|  | 	cli := client.DefaultClient | ||||||
|  |  | ||||||
|  | 	return &debugClient{ | ||||||
|  | 		Client: pb.NewDebugService(name, cli), | ||||||
|  | 	} | ||||||
|  | } | ||||||
|   | |||||||
| @@ -142,4 +142,3 @@ func New(i int) *Buffer { | |||||||
| 		streams: make(map[string]*Stream), | 		streams: make(map[string]*Stream), | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user