Skip to content

Commit 9f52320

Browse files
authored
Fix LRUCache memory leak. (#4520)
1 parent 3063763 commit 9f52320

File tree

1 file changed

+1
-0
lines changed
  • packages/rpc-provider/src

1 file changed

+1
-0
lines changed

packages/rpc-provider/src/lru.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export class LRUCache {
108108
this.#refs.delete(this.#tail.key);
109109

110110
this.#tail = this.#tail.prev;
111+
this.#tail.next = this.#head;
111112
} else {
112113
this.#length += 1;
113114
}

0 commit comments

Comments
 (0)