forked from quic-go/quic-go
clean up dial functions
* add a context to all Dial functions
* remove the explicit Dial{*}Context functions
This commit is contained in:
@@ -90,7 +90,7 @@ type client struct {
|
||||
|
||||
func (c *client) RoundTrip(req *http.Request) (*http.Response, error) {
|
||||
c.once.Do(func() {
|
||||
c.conn, c.dialErr = quic.DialAddrEarly(c.hostname, c.tlsConf, c.quicConf)
|
||||
c.conn, c.dialErr = quic.DialAddrEarly(context.Background(), c.hostname, c.tlsConf, c.quicConf)
|
||||
})
|
||||
if c.dialErr != nil {
|
||||
return nil, c.dialErr
|
||||
|
||||
Reference in New Issue
Block a user