Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Add missing `max` attribute to cache call
Rūdolfs Ošiņš committed 3 years ago
commit 51808b13b4b00c3a1c417c826318be9b11613c7a
parent 3a5527208ba947e01408f9e4e3ef8dc744a584e4
1 file changed +1 -1
modified src/utils.ts
@@ -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.