Skip to content

Commit

Permalink
Fixed LRUCache import
Browse files Browse the repository at this point in the history
  • Loading branch information
ekenigs committed Jun 10, 2024
1 parent 6f6b2f0 commit 9026548
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/utils/src/polkadot/polkadot.api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ApiPromise, WsProvider } from '@polkadot/api';
import { typesBundle } from '@polkadot/apps-config';
import LRU from 'lru-cache';
import { LRUCache } from 'lru-cache';

export enum MRLTypes {
// TODO handle both types according to RT version
Expand All @@ -10,7 +10,7 @@ export enum MRLTypes {
VersionedUserAction = 'VersionedUserAction',
}

const cache = new LRU<string, Promise<ApiPromise>>({
const cache = new LRUCache<string, Promise<ApiPromise>>({
max: 20,
// eslint-disable-next-line sort-keys
dispose: async (promise: Promise<ApiPromise>) => {
Expand Down

0 comments on commit 9026548

Please sign in to comment.