Просмотр исходного кода

increase the auto compile limit a little

Henry Oswald 11 лет назад
Родитель
Сommit
f8e3fa6308

+ 2 - 2
services/web/app/coffee/Features/Compile/CompileManager.coffee

@@ -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

+ 2 - 2
services/web/test/UnitTests/coffee/Compile/CompileManagerTests.coffee

@@ -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()