|
15 | 15 | 'use strict'; |
16 | 16 |
|
17 | 17 | const express = require('express'); |
18 | | -const createConnectorIAMAuthnPool = require('./connect-connector-with-iam-authn.js'); |
| 18 | +const createConnectorIAMAuthnPool = require('./connect-connector-auto-iam-authn.js'); |
19 | 19 | const createConnectorPool = require('./connect-connector.js'); |
20 | 20 | const createTcpPool = require('./connect-tcp.js'); |
21 | 21 | const createUnixSocketPool = require('./connect-unix.js'); |
@@ -65,9 +65,7 @@ const createPool = async () => { |
65 | 65 | // 'connectTimeout' is the maximum number of milliseconds before a timeout |
66 | 66 | // occurs during the initial connection to the database. |
67 | 67 | 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 |
71 | 69 | // 'waitForConnections' determines the pool's action when no connections are |
72 | 70 | // free. If true, the request will queued and a connection will be presented |
73 | 71 | // when ready. If false, the pool will call back with an error. |
@@ -172,7 +170,7 @@ const httpGet = app.get('/', async (req, res) => { |
172 | 170 |
|
173 | 171 | // Run queries concurrently, and wait for them to complete |
174 | 172 | // This is faster than await-ing each query object as it is created |
175 | | - const recentVotes = await recentVotesQuery; |
| 173 | + const [recentVotes] = await recentVotesQuery; // Return only the results, not the field metadata |
176 | 174 | const [tabsVotes] = await tabsQuery; |
177 | 175 | const [spacesVotes] = await spacesQuery; |
178 | 176 |
|
|
0 commit comments