increase compile throttle limit

This commit is contained in:
Henry Oswald 2015-11-25 11:07:53 +00:00
parent 8ca962b734
commit 91a84cb232
2 changed files with 3 additions and 3 deletions

View file

@ -50,9 +50,9 @@ module.exports = CompileController =
else
rateLimitOpts =
endpointName: "full-pdf-download"
throttle: 100
throttle: 1000
subjectName : req.ip
timeInterval : 60 * 10
timeInterval : 60 * 60
RateLimiter.addCount rateLimitOpts, callback
Project.findById project_id, {name: 1}, (err, project)->

View file

@ -135,7 +135,7 @@ describe "CompileController", ->
@req.query = {}
@RateLimiter.addCount.callsArgWith(1, null, true)
@CompileController.proxyToClsi = (project_id, url)=>
@RateLimiter.addCount.args[0][0].throttle.should.equal 100
@RateLimiter.addCount.args[0][0].throttle.should.equal 1000
done()
@CompileController.downloadPdf @req, @res