增加数据-人民币汇率
This commit is contained in:
@@ -98,8 +98,11 @@ export default async function handler(req, res) {
|
||||
error: error.message
|
||||
});
|
||||
} finally {
|
||||
if (pool) {
|
||||
await pool.end();
|
||||
}
|
||||
// 不关闭连接池,保持连接池打开以提高性能
|
||||
// 如果需要关闭连接池,应该在关闭后将 pool 变量设置为 null
|
||||
// if (pool) {
|
||||
// await pool.end();
|
||||
// pool = null;
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user