Add missing max attribute to cache call

This gets rid of the UnboundedCacheWarning.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2022-08-25 14:44:17 +02:00
parent 3a5527208b
commit 51808b13b4
+1 -1
View File
@@ -555,7 +555,7 @@ export const getRpcMethod = cache.cached(
return await config.provider.send(method, props);
},
(method, props) => JSON.stringify([method, props]),
{ ttl: 2 * 60 * 1000 }
{ ttl: 2 * 60 * 1000, max: 1000 }
);
// Check whether the given path has a markdown file extension.