Unverified Commit d115ccad authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

examples: fix import statement for lru-cache (#58567)

parent 0e55bb1a
...@@ -7,7 +7,7 @@ type Options = { ...@@ -7,7 +7,7 @@ type Options = {
} }
export default function rateLimit(options?: Options) { export default function rateLimit(options?: Options) {
const tokenCache = new LRU({ const tokenCache = new LRUCache({
max: options?.uniqueTokenPerInterval || 500, max: options?.uniqueTokenPerInterval || 500,
ttl: options?.interval || 60000, ttl: options?.interval || 60000,
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment