Fixing dead code and go vet moaning

This commit is contained in:
Milos Gajdos 2019-12-05 16:10:49 +00:00 committed by Vasiliy Tolstov
parent b3a60ba4f1
commit f0fd4f90a5

View File

@ -172,7 +172,7 @@ func (g *grpcCodec) Write(m *codec.Message, v interface{}) error {
return g.s.SendMsg(v) return g.s.SendMsg(v)
} }
// write the body using the framing codec // 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 { func (g *grpcCodec) Close() error {