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:
@@ -54,7 +54,7 @@ func clientMain() error {
|
||||
InsecureSkipVerify: true,
|
||||
NextProtos: []string{"quic-echo-example"},
|
||||
}
|
||||
conn, err := quic.DialAddr(addr, tlsConf, nil)
|
||||
conn, err := quic.DialAddr(context.Background(), addr, tlsConf, nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user