mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 18:20:30 +08:00
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:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user