We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b52dca6 commit a8f5b32Copy full SHA for a8f5b32
2 files changed
src/config/rds.ts
@@ -19,6 +19,10 @@ export default {
19
queueLimit: Number(
20
process.env.LESGO_AWS_RDS_AURORA_MYSQL_PROXY_QUEUE_LIMIT || '0'
21
),
22
+ usePool:
23
+ process.env.LESGO_AWS_RDS_AURORA_MYSQL_USE_POOL === 'false'
24
+ ? false
25
+ : true,
26
},
27
28
src/services/RDSAuroraMySQLProxyService/getMySQLProxyClient.ts
@@ -36,7 +36,7 @@ const getMySQLProxyClient = async (
36
rdsConfig.aurora.mysql.proxy.dbCredentialsSecretId) as string;
37
const databaseName =
38
options.databaseName || rdsConfig.aurora.mysql.databaseName;
39
- const usePool = options.usePool ?? true;
+ const usePool = options.usePool ?? rdsConfig.aurora.mysql.usePool;
40
41
if (!isEmpty(singleton[singletonConn])) {
42
logger.debug(`${FILE}::REUSE_RDS_CONNECTION`);
0 commit comments