Skip to content

Commit

Permalink
Merge pull request #341 from ferhatelmas/ferhat/dial-context
Browse files Browse the repository at this point in the history
fix: use correct context for dial
  • Loading branch information
imroc authored Apr 7, 2024
2 parents 34bd522 + 18c1609 commit 19bac2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -1829,7 +1829,7 @@ func (t *Transport) dialConnFor(w *wantConn) {
return
}

pc, err := t.dialConn(w.ctx, w.cm)
pc, err := t.dialConn(ctx, w.cm)
delivered := w.tryDeliver(pc, err)
if err == nil && (!delivered || pc.alt != nil) {
// pconn was not passed to w,
Expand Down

0 comments on commit 19bac2c

Please sign in to comment.