mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 05:11:34 +02:00
increase auto compile limit
This commit is contained in:
@@ -60,7 +60,7 @@ module.exports = CompileManager =
|
||||
endpointName:"auto_compile"
|
||||
timeInterval:15
|
||||
subjectName:"everyone"
|
||||
throttle: 10
|
||||
throttle: 15
|
||||
rateLimiter.addCount opts, (err, canCompile)->
|
||||
if err?
|
||||
canCompile = false
|
||||
|
||||
@@ -201,7 +201,7 @@ describe "CompileManager", ->
|
||||
@ratelimiter.addCount.callsArgWith(1, null, true)
|
||||
@CompileManager._checkIfAutoCompileLimitHasBeenHit true, (err, canCompile)=>
|
||||
args = @ratelimiter.addCount.args[0][0]
|
||||
args.throttle.should.equal 10
|
||||
args.throttle.should.equal 15
|
||||
args.subjectName.should.equal "everyone"
|
||||
args.timeInterval.should.equal 15
|
||||
args.endpointName.should.equal "auto_compile"
|
||||
|
||||
Reference in New Issue
Block a user