update codec interface
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
@@ -11,7 +11,7 @@ type tcpRequest struct {
|
||||
contentType string
|
||||
header map[string]string
|
||||
body interface{}
|
||||
codec codec.Reader
|
||||
codec codec.Codec
|
||||
}
|
||||
|
||||
func (r *tcpRequest) Service() string {
|
||||
@@ -46,6 +46,6 @@ func (r *tcpRequest) Stream() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (r *tcpRequest) Codec() codec.Reader {
|
||||
func (r *tcpRequest) Codec() codec.Codec {
|
||||
return r.codec
|
||||
}
|
||||
|
Reference in New Issue
Block a user