mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-11 17:35:33 +00:00
increase the auto compile limit a little
This commit is contained in:
parent
21a01d94d4
commit
f8e3fa6308
2 changed files with 4 additions and 4 deletions
|
@ -71,9 +71,9 @@ module.exports = CompileManager =
|
|||
return callback(null, true)
|
||||
opts =
|
||||
endpointName:"auto_compile"
|
||||
timeInterval:15
|
||||
timeInterval:20
|
||||
subjectName:"everyone"
|
||||
throttle: 15
|
||||
throttle: 25
|
||||
rateLimiter.addCount opts, (err, canCompile)->
|
||||
if err?
|
||||
canCompile = false
|
||||
|
|
|
@ -241,9 +241,9 @@ describe "CompileManager", ->
|
|||
@ratelimiter.addCount.callsArgWith(1, null, true)
|
||||
@CompileManager._checkIfAutoCompileLimitHasBeenHit true, (err, canCompile)=>
|
||||
args = @ratelimiter.addCount.args[0][0]
|
||||
args.throttle.should.equal 15
|
||||
args.throttle.should.equal 25
|
||||
args.subjectName.should.equal "everyone"
|
||||
args.timeInterval.should.equal 15
|
||||
args.timeInterval.should.equal 20
|
||||
args.endpointName.should.equal "auto_compile"
|
||||
canCompile.should.equal true
|
||||
done()
|
||||
|
|
Loading…
Add table
Reference in a new issue