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 e2e6425e65
commit 83d0560d23

View File

@ -169,7 +169,7 @@ func (g *grpcCodec) Write(m *codec.Message, v interface{}) error {
m.Body = b
}
// 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 {