Skip to content

Commit 4574888

Browse files
committed
remove context.WithoutCancel, which is a function introduced in Go 1.21
1 parent b6ad4fd commit 4574888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pool/pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ func (p *ConnPool) asyncNewConn(ctx context.Context) (*Conn, error) {
566566
return nil, ctx.Err()
567567
}
568568

569-
dialCtx, cancel := context.WithTimeout(context.WithoutCancel(ctx), p.cfg.DialTimeout)
569+
dialCtx, cancel := context.WithTimeout(context.Background(), p.cfg.DialTimeout)
570570

571571
w := &wantConn{
572572
ctx: dialCtx,

0 commit comments

Comments
 (0)