remove clientCodec
This commit is contained in:
		| @@ -45,12 +45,6 @@ type readWriteCloser struct { | |||||||
| 	rbuf *bytes.Buffer | 	rbuf *bytes.Buffer | ||||||
| } | } | ||||||
|  |  | ||||||
| type clientCodec interface { |  | ||||||
| 	Write(*request, interface{}) error |  | ||||||
| 	Read(*response, interface{}) error |  | ||||||
| 	Close() error |  | ||||||
| } |  | ||||||
|  |  | ||||||
| type request struct { | type request struct { | ||||||
| 	Service       string | 	Service       string | ||||||
| 	ServiceMethod string   // format: "Service.Method" | 	ServiceMethod string   // format: "Service.Method" | ||||||
|   | |||||||
| @@ -13,7 +13,7 @@ type rpcStream struct { | |||||||
| 	closed  chan bool | 	closed  chan bool | ||||||
| 	err     error | 	err     error | ||||||
| 	request Request | 	request Request | ||||||
| 	codec   clientCodec | 	codec   *rpcCodec | ||||||
| 	context context.Context | 	context context.Context | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user