Skip to content

Commit c153239

Browse files
committed
acquireTimeout warns in mysql2, remove
1 parent f59eff6 commit c153239

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cloud-sql/mysql/mysql2/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ const createPool = async () => {
6565
// 'connectTimeout' is the maximum number of milliseconds before a timeout
6666
// occurs during the initial connection to the database.
6767
connectTimeout: 10000, // 10 seconds
68-
// 'acquireTimeout' is the maximum number of milliseconds to wait when
69-
// checking out a connection from the pool before a timeout error occurs.
70-
acquireTimeout: 10000, // 10 seconds
68+
// 'acquireTimeout' is currently unsupported by mysql2
7169
// 'waitForConnections' determines the pool's action when no connections are
7270
// free. If true, the request will queued and a connection will be presented
7371
// when ready. If false, the pool will call back with an error.

0 commit comments

Comments
 (0)