mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-24 13:12:49 +00:00
increase compile throttle limit
This commit is contained in:
parent
8ca962b734
commit
91a84cb232
2 changed files with 3 additions and 3 deletions
|
@ -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)->
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue