Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
chore: cache more interactions than default per contract
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Nov 8, 2023
1 parent 7aac65c commit 6806e6a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/middleware/warp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ const warp = WarpFactory.forMainnet(
},
true,
arweave,
).useStateCache(new LmdbCache(defaultCacheOptions));
).useStateCache(
new LmdbCache(defaultCacheOptions, {
maxEntriesPerContract: 1000,
minEntriesPerContract: 10,
}),
);

export function warpMiddleware(ctx: KoaContext, next: Next) {
ctx.state.warp = warp;
Expand Down

0 comments on commit 6806e6a

Please sign in to comment.