update codec interface

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-11-25 23:56:38 +03:00
parent 156c93b8fa
commit 449cc08217
7 changed files with 14 additions and 60 deletions

View File

@@ -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
}