Skip to content

Commit

Permalink
fix: use correct context for dial
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas committed Apr 5, 2024
1 parent 7e8e5f4 commit 18c1609
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 18c1609

Please sign in to comment.