Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

Commit 25162c7

Browse files
authored
Merge pull request #77 from ethereumjs/greenkeeper/lru-cache-5.0.0
Update lru-cache to v5.1.1
2 parents 3c458de + f6cdefa commit 25162c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ Blockchain.prototype._getTd = function (hash, number, cb) {
11241124

11251125
// Simple LRU Cache that allows for keys of type Buffer
11261126
function Cache (opts) {
1127-
this._cache = LRU(opts)
1127+
this._cache = new LRU(opts)
11281128
}
11291129

11301130
Cache.prototype.set = function (key, value) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"ethereumjs-util": "~6.0.0",
3232
"flow-stoplight": "^1.0.0",
3333
"level-mem": "^3.0.1",
34-
"lru-cache": "^4.1.3",
34+
"lru-cache": "^5.1.1",
3535
"safe-buffer": "^5.1.2",
3636
"semaphore": "^1.1.0"
3737
},

0 commit comments

Comments
 (0)