disable pool for sqlite, re-use a connection to improve the performance.

This commit is contained in:
LouisLam
2021-08-17 15:59:23 +08:00
parent 86826fb826
commit 61e758d872
2 changed files with 23 additions and 32 deletions

View File

@@ -811,11 +811,10 @@ async function shutdownFunction(signal) {
}
await sleep(2000);
await Database.close();
console.log("Stopped DB")
}
function finalFunction() {
console.log("Graceful Shutdown Done")
console.log("Graceful shutdown successfully!");
}
gracefulShutdown(server, {