THRIFT-2853 Adjust comments that doesn't apply anymore because of THRIFT-2852
Client: Go
Patch: Chi Vinh Le <cvl@chinet.info> & Jens Geyer
This closes #286
diff --git a/lib/go/thrift/iostream_transport.go b/lib/go/thrift/iostream_transport.go
index 82563e9..cdff544 100644
--- a/lib/go/thrift/iostream_transport.go
+++ b/lib/go/thrift/iostream_transport.go
@@ -93,13 +93,11 @@
return &StreamTransport{Reader: bufrw, Writer: bufrw, isReadWriter: true}
}
-// (The streams must already be open at construction time, so this should
-// always return true.)
func (p *StreamTransport) IsOpen() bool {
return !p.closed
}
-// (The streams must already be open. This method does nothing.)
+// implicitly opened on creation, can't be reopened once closed
func (p *StreamTransport) Open() error {
if !p.closed {
return NewTTransportException(ALREADY_OPEN, "StreamTransport already open.")