From f0fd4f90a5cacf22469e76a8d5fd32c953389a64 Mon Sep 17 00:00:00 2001 From: Milos Gajdos Date: Thu, 5 Dec 2019 16:10:49 +0000 Subject: [PATCH] Fixing dead code and go vet moaning --- codec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec.go b/codec.go index 2f32a0b..44f16d5 100644 --- a/codec.go +++ b/codec.go @@ -172,7 +172,7 @@ func (g *grpcCodec) Write(m *codec.Message, v interface{}) error { return g.s.SendMsg(v) } // write the body using the framing codec - return g.s.SendMsg(&bytes.Frame{m.Body}) + return g.s.SendMsg(&bytes.Frame{Data: m.Body}) } func (g *grpcCodec) Close() error {