use a chan instead of a context in Connection.HandshakeComplete (#3709)

This commit is contained in:
Marten Seemann
2023-03-27 00:51:56 +11:00
committed by GitHub
parent 41ddaa0262
commit a4b0265628
14 changed files with 66 additions and 65 deletions

View File

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