File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -22,15 +22,17 @@ var MongoStore = require('rate-limit-mongo');
22
22
23
23
var limiter = new RateLimit ({
24
24
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' )
30
31
// see Configuration section for more options and details
31
32
}),
32
33
max: 100 ,
33
- windowMs: 15 * 60 * 1000 // should match expireTimeMs
34
+ // should match expireTimeMs
35
+ windowMs: 15 * 60 * 1000
34
36
});
35
37
36
38
// apply to all requests
You can’t perform that action at this time.
0 commit comments