From 102ab1e0c89ed83b72878c9ac027e5919bfdc6de Mon Sep 17 00:00:00 2001 From: Wit Riewrangboonya Date: Mon, 23 Aug 2021 15:17:40 -0700 Subject: [PATCH] Review comments --- encoding/thrift/envelope.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/encoding/thrift/envelope.go b/encoding/thrift/envelope.go index 62d1942a33..fb6ef28a73 100644 --- a/encoding/thrift/envelope.go +++ b/encoding/thrift/envelope.go @@ -63,16 +63,16 @@ type disableEnvelopingNoWireProtocol struct { Type wire.EnvelopeType } -func (evsp disableEnvelopingNoWireProtocol) Reader(r io.Reader) stream.Reader { +func (evnw disableEnvelopingNoWireProtocol) Reader(r io.Reader) stream.Reader { return disableEnvelopingNoWireReader{ - Reader: evsp.Protocol.Reader(r), - Type: evsp.Type, + Reader: evnw.Protocol.Reader(r), + Type: evnw.Type, } } -func (evsp disableEnvelopingNoWireProtocol) Writer(w io.Writer) stream.Writer { +func (evnw disableEnvelopingNoWireProtocol) Writer(w io.Writer) stream.Writer { return disableEnvelopingWriter{ - Writer: evsp.Protocol.Writer(w), + Writer: evnw.Protocol.Writer(w), } }