chore: rename wrappedQUICStream -> qStream

This commit is contained in:
Toby
2022-10-23 16:31:30 -07:00
parent b247919a03
commit 919fbb7152
3 changed files with 19 additions and 16 deletions

View File

@@ -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) {