зеркало из https://github.com/Azure/ARO-RP.git
export NewStreamConn
This commit is contained in:
Родитель
4cf3dda1a0
Коммит
c38da832db
|
@ -43,5 +43,5 @@ func DialContext(ctx context.Context, log *logrus.Entry, restconfig *rest.Config
|
|||
return nil, err
|
||||
}
|
||||
|
||||
return newStreamConn(log, spdyConn, dataStream, errorStream), nil
|
||||
return NewStreamConn(log, spdyConn, dataStream, errorStream), nil
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ type streamConn struct {
|
|||
|
||||
var _ net.Conn = (*streamConn)(nil)
|
||||
|
||||
func newStreamConn(log *logrus.Entry, c httpstream.Connection, dataStream, errorStream httpstream.Stream) *streamConn {
|
||||
func NewStreamConn(log *logrus.Entry, c httpstream.Connection, dataStream, errorStream httpstream.Stream) net.Conn {
|
||||
s := &streamConn{
|
||||
log: log,
|
||||
errch: make(chan error, 1),
|
||||
|
|
Загрузка…
Ссылка в новой задаче