File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -106,24 +106,13 @@ func NewStdioTransport() *StdioTransport {
106106// An IOTransport is a [Transport] that communicates over separate
107107// io.ReadCloser and io.WriteCloser using newline-delimited JSON.
108108type IOTransport struct {
109- reader io.ReadCloser
110- writer io.WriteCloser
109+ Reader io.ReadCloser
110+ Writer io.WriteCloser
111111}
112112
113113// Connect implements the [Transport] interface.
114114func (t * IOTransport ) Connect (context.Context ) (Connection , error ) {
115- return newIOConn (rwc {t .reader , t .writer }), nil
116- }
117-
118- // NewIOTransport constructs a transport that communicates over
119- // io.ReadCloser and io.WriteCloser.
120- //
121- //go:fix inline
122- func NewIOTransport (reader io.ReadCloser , writer io.WriteCloser ) * IOTransport {
123- return & IOTransport {
124- reader : reader ,
125- writer : writer ,
126- }
115+ return newIOConn (rwc {t .Reader , t .Writer }), nil
127116}
128117
129118// An InMemoryTransport is a [Transport] that communicates over an in-memory
You can’t perform that action at this time.
0 commit comments