Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebulizer1213 committed Aug 5, 2022
1 parent 3339e42 commit 44b2754
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ const MemoryStore = require("precise-memory-rate-limit")
const max = 10

const limiter = rateLimit({
store: new MemoryStore(max),
windowMs: 15 * 60 * 1000,
max: max // Make sure this is the same as the max passed into the MemoryStore constructor
store: new MemoryStore(max),
windowMs: 15 * 60 * 1000,
max: max // Make sure this is the same as the max passed into the MemoryStore constructor
})

app.use(limiter)
```

precise-memory-ratelimit does not currently support using a middleware for the max

0 comments on commit 44b2754

Please sign in to comment.