mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-07-21 02:48:01 +00:00
chore: rename wrappedQUICStream -> qStream
This commit is contained in:
@@ -185,7 +185,7 @@ func (c *Client) openStreamWithReconnect() (quic.Connection, quic.Stream, error)
|
||||
stream, err := c.quicConn.OpenStream()
|
||||
if err == nil {
|
||||
// All good
|
||||
return c.quicConn, &wrappedQUICStream{stream}, nil
|
||||
return c.quicConn, &qStream{stream}, nil
|
||||
}
|
||||
// Something is wrong
|
||||
if nErr, ok := err.(net.Error); ok && nErr.Temporary() {
|
||||
@@ -200,7 +200,7 @@ func (c *Client) openStreamWithReconnect() (quic.Connection, quic.Stream, error)
|
||||
}
|
||||
// We are not going to try again even if it still fails the second time
|
||||
stream, err = c.quicConn.OpenStream()
|
||||
return c.quicConn, &wrappedQUICStream{stream}, err
|
||||
return c.quicConn, &qStream{stream}, err
|
||||
}
|
||||
|
||||
func (c *Client) DialTCP(addr string) (net.Conn, error) {
|
||||
|
Reference in New Issue
Block a user