diff --git a/services/web/app/coffee/Features/Compile/CompileManager.coffee b/services/web/app/coffee/Features/Compile/CompileManager.coffee index e9e3177097..d998b396aa 100644 --- a/services/web/app/coffee/Features/Compile/CompileManager.coffee +++ b/services/web/app/coffee/Features/Compile/CompileManager.coffee @@ -57,9 +57,9 @@ module.exports = CompileManager = return callback(null, true) opts = endpointName:"auto_compile" - timeInterval:10 + timeInterval:15 subjectName:"everyone" - throttle: 5 + throttle: 10 rateLimiter.addCount opts, (err, canCompile)-> if err? canCompile = false diff --git a/services/web/test/UnitTests/coffee/Compile/CompileManagerTests.coffee b/services/web/test/UnitTests/coffee/Compile/CompileManagerTests.coffee index 09561959f4..7235ce9453 100644 --- a/services/web/test/UnitTests/coffee/Compile/CompileManagerTests.coffee +++ b/services/web/test/UnitTests/coffee/Compile/CompileManagerTests.coffee @@ -208,9 +208,9 @@ describe "CompileManager", -> @ratelimiter.addCount.callsArgWith(1, null, true) @CompileManager._checkIfAutoCompileLimitHasBeenHit true, (err, canCompile)=> args = @ratelimiter.addCount.args[0][0] - args.throttle.should.equal 5 + args.throttle.should.equal 10 args.subjectName.should.equal "everyone" - args.timeInterval.should.equal 10 + args.timeInterval.should.equal 15 args.endpointName.should.equal "auto_compile" canCompile.should.equal true done()