server: remove unparsed body from request and message

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2022-03-21 15:30:19 +03:00
parent 1a8648f95b
commit 7e512979c8
4 changed files with 15 additions and 14 deletions

View File

@@ -21,10 +21,6 @@ func (r *tcpMessage) Topic() string {
return r.topic
}
func (r *tcpMessage) Payload() interface{} {
return r.payload
}
func (r *tcpMessage) ContentType() string {
return r.contentType
}
@@ -33,8 +29,8 @@ func (r *tcpMessage) Header() metadata.Metadata {
return r.header
}
func (r *tcpMessage) Body() []byte {
return r.body
func (r *tcpMessage) Body() interface{} {
return r.payload
}
func (r *tcpMessage) Codec() codec.Codec {