mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
increase the auto compile limit a little
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user