Skip to content

Commit

Permalink
add missing new when LRU instantinated
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Sidorov committed Aug 28, 2019
1 parent 28ced74 commit 98c1301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 98c1301

Please sign in to comment.