From 98c130140235a6561e0866fef7edf464d5f810ff Mon Sep 17 00:00:00 2001 From: Andrey Sidorov Date: Wed, 28 Aug 2019 16:12:37 +1000 Subject: [PATCH] add missing new when LRU instantinated --- lib/connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connection.js b/lib/connection.js index 02ea34baf6..982897b4fd 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -48,7 +48,7 @@ class Connection extends EventEmitter { this._command = null; this._paused = false; this._paused_packets = new Queue(); - this._statements = LRU({ + this._statements = new LRU({ max: this.config.maxPreparedStatements, dispose: function(key, statement) { statement.close();