Skip to content

Commit

Permalink
fix: LRU constructor (#2004)
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwelwel authored May 11, 2023
1 parent b8c79d0 commit fd3d117
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const EventEmitter = require('events').EventEmitter;
const Readable = require('stream').Readable;
const Queue = require('denque');
const SqlString = require('sqlstring');
const LRU = require('lru-cache');
const LRU = require('lru-cache').default;

const PacketParser = require('./packet_parser.js');
const Packets = require('./packets/index.js');
Expand Down
2 changes: 1 addition & 1 deletion lib/parsers/parser_cache.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const LRU = require('lru-cache');
const LRU = require('lru-cache').default;

const parserCache = new LRU({
max: 15000
Expand Down

0 comments on commit fd3d117

Please sign in to comment.