mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-24 05:23:57 +00:00
fix: add connection timeout to database settings (#4434)
This commit is contained in:
@@ -34,7 +34,8 @@ const main = async ({
|
||||
port: parseInt(port, 10),
|
||||
database: databaseName,
|
||||
user,
|
||||
password
|
||||
password,
|
||||
connectionTimeoutMillis: 30000
|
||||
});
|
||||
|
||||
await client.connect();
|
||||
@@ -47,7 +48,8 @@ const main = async ({
|
||||
port: parseInt(port, 10),
|
||||
database: databaseName,
|
||||
user,
|
||||
password
|
||||
password,
|
||||
connectTimeout: 30000
|
||||
});
|
||||
|
||||
const [rows] = await connection.execute(sql);
|
||||
|
Reference in New Issue
Block a user