[client] Update RaceDial to accept context for improved cancellation handling (#5849)

This commit is contained in:
Zoltan Papp
2026-04-10 20:51:04 +02:00
committed by GitHub
parent cf86b9a528
commit ebd78e0122
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -333,7 +333,7 @@ func (c *Client) connect(ctx context.Context) (*RelayAddr, error) {
dialers := c.getDialers()
rd := dialer.NewRaceDial(c.log, dialer.DefaultConnectionTimeout, c.connectionURL, dialers...)
conn, err := rd.Dial()
conn, err := rd.Dial(ctx)
if err != nil {
return nil, err
}