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:28:39 +03:00
parent f00e34380b
commit dc01d20561
5 changed files with 14 additions and 24 deletions

View File

@@ -22,7 +22,6 @@ type rpcRequest struct {
endpoint string
contentType string
service string
body []byte
stream bool
}
@@ -83,7 +82,7 @@ func (r *rpcMessage) Topic() string {
return r.topic
}
func (r *rpcMessage) Payload() interface{} {
func (r *rpcMessage) Body() interface{} {
return r.payload
}
@@ -91,10 +90,6 @@ func (r *rpcMessage) Header() metadata.Metadata {
return r.header
}
func (r *rpcMessage) Body() []byte {
return r.body
}
func (r *rpcMessage) Codec() codec.Codec {
return r.codec
}