forked from quic-go/quic-go
use a chan instead of a context in Connection.HandshakeComplete (#3709)
This commit is contained in:
@@ -96,7 +96,7 @@ func (c *client) RoundTrip(req *http.Request) (*http.Response, error) {
|
||||
return nil, c.dialErr
|
||||
}
|
||||
if req.Method != MethodGet0RTT {
|
||||
<-c.conn.HandshakeComplete().Done()
|
||||
<-c.conn.HandshakeComplete()
|
||||
}
|
||||
return c.doRequest(req)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user