add more comments

This commit is contained in:
iamqizhao
2016-01-25 11:52:24 -08:00
parent 4258b32de7
commit a9cd71320c

View File

@ -203,10 +203,13 @@ type Stream struct {
statusDesc string
}
// RecvCompress returns the compression algorithm applied to the inbound
// message. It is empty string if there is no compression applied.
func (s *Stream) RecvCompress() string {
return s.recvCompress
}
// SetSendCompress sets the compression algorithm to the stream.
func (s *Stream) SetSendCompress(str string) {
s.sendCompress = str
}