Skip to content

Commit

Permalink
one potential fix: open the new connection in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
xshipeng committed Dec 8, 2023
1 parent aa6db4d commit a1c27b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ func (db *DB) connectionOpener(ctx context.Context) {
case <-ctx.Done():
return
case <-db.OpenerCh:
db.openNewConnection(ctx)
go db.openNewConnection(ctx)
}
}
}
Expand Down

0 comments on commit a1c27b7

Please sign in to comment.