From c95657efe35e1e9fcd260730bf3219907dc61e87 Mon Sep 17 00:00:00 2001 From: diego Dupin Date: Fri, 20 May 2022 13:52:05 +0200 Subject: [PATCH] misc code style correction --- lib/pool.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/pool.js b/lib/pool.js index e7396156..13f7b7ab 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -148,11 +148,11 @@ class Pool extends EventEmitter { conn.leakProcess = setTimeout( (conn) => { console.log( - 'A possible connection leak on the thread ' + - conn.info.threadId + - ' (the connection not returned to the pool since ' + - (Date.now() - conn.lastUse) + - 'ms). Has the connection.release() been called ?' + `A possible connection leak on the thread ${ + conn.info.threadId + } (the connection not returned to the pool since ${ + Date.now() - conn.lastUse + } ms). Has the connection.release() been called ?` ); conn.leaked = true; },