Skip to content

Commit

Permalink
modification
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotrajano committed Jul 6, 2020
1 parent 8c91cee commit bd56980
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const HOST = "localhost";
const USER = "root";
const PASSWORD = "123456";
const DATABASE = "trackpath";
const POOL_LIMIT = "trackpath";
let cachedDbPool;

// const connection = mysql.createConnection({
Expand All @@ -20,7 +21,7 @@ let cachedDbPool;
function cachedPool() {
if (!cachedDbPool) {
cachedDbPool = mysql.createPool({
connectionLimit: 1,
connectionLimit: POOL_LIMIT,
host: HOST,
user: USER,
password: PASSWORD,
Expand Down

0 comments on commit bd56980

Please sign in to comment.