Skip to content

Commit 664456b

Browse files
committed
slightly update example formatting in readme
1 parent 6140931 commit 664456b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@ var MongoStore = require('rate-limit-mongo');
2222

2323
var limiter = new RateLimit({
2424
store: new MongoStore({
25-
uri: "mongodb://127.0.0.1:27017/test_db",
26-
user: "mongouser",
27-
password: "mongopassword",
28-
expireTimeMs: 15 * 60 * 1000, // should match windowMs
29-
errorHandler: console.error.bind(null, "rate-limit-mongo"),
25+
uri: 'mongodb://127.0.0.1:27017/test_db',
26+
user: 'mongouser',
27+
password: 'mongopassword',
28+
// should match windowMs
29+
expireTimeMs: 15 * 60 * 1000,
30+
errorHandler: console.error.bind(null, 'rate-limit-mongo')
3031
// see Configuration section for more options and details
3132
}),
3233
max: 100,
33-
windowMs: 15 * 60 * 1000 // should match expireTimeMs
34+
// should match expireTimeMs
35+
windowMs: 15 * 60 * 1000
3436
});
3537

3638
// apply to all requests

0 commit comments

Comments
 (0)