Henry Oswald 12 лет назад
Родитель
Сommit
3bac4dc39f

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

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

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

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