rabbah commented on a change in pull request #2531: Share bookkeeping data 
across controllers
URL: 
https://github.com/apache/incubator-openwhisk/pull/2531#discussion_r138445730
 
 

 ##########
 File path: 
core/controller/src/main/scala/whisk/core/entitlement/Entitlement.scala
 ##########
 @@ -130,13 +130,17 @@ protected[core] abstract class 
EntitlementProvider(config: WhiskConfig, loadBala
 
     logging.info(this, s"checking user '${user.subject}' has not exceeded 
activation quota")
 
-    checkSystemOverload(ACTIVATE) orElse {
-      checkThrottleOverload(!invokeRateThrottler.check(user), tooManyRequests)
-    } orElse {
-      checkThrottleOverload(!concurrentInvokeThrottler.check(user), 
tooManyConcurrentRequests)
-    } map {
-      Future.failed(_)
-    } getOrElse Future.successful({})
+    checkSystemOverload(ACTIVATE).flatMap { systemOverloaded =>
 
 Review comment:
   the changes in this file are out of date.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to