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 tcpMessage struct {
contentType string
header metadata.Metadata
body []byte
codec codec.Reader
codec codec.Codec
}
func (r *tcpMessage) Topic() string {
@@ -34,6 +34,6 @@ func (r *tcpMessage) Body() []byte {
return r.body
}
func (r *tcpMessage) Codec() codec.Reader {
func (r *tcpMessage) Codec() codec.Codec {
return r.codec
}