No need to set request in the buffer

This commit is contained in:
Asim Aslam
2019-08-16 14:42:45 +01:00
parent 5a5b1b8f6e
commit 991142cd57
2 changed files with 3 additions and 2 deletions

View File

@@ -154,7 +154,7 @@ func setupProtocol(msg *transport.Message) codec.NewCodec {
func newRpcCodec(req *transport.Message, socket transport.Socket, c codec.NewCodec) codec.Codec {
rwc := &readWriteCloser{
rbuf: bytes.NewBuffer(req.Body),
rbuf: bytes.NewBuffer(nil),
wbuf: bytes.NewBuffer(nil),
}
r := &rpcCodec{