JoaoJandre commented on code in PR #7599:
URL: https://github.com/apache/cloudstack/pull/7599#discussion_r1221432585
##########
plugins/api/discovery/src/main/java/org/apache/cloudstack/discovery/ApiDiscoveryServiceImpl.java:
##########
@@ -84,6 +88,9 @@ public boolean start() {
Set<Class<?>> cmdClasses = new LinkedHashSet<Class<?>>();
for (PluggableService service : _services) {
s_logger.debug(String.format("getting api commands of service:
%s", service.getClass().getName()));
+ if
(service.getClass().getSimpleName().equals("QuotaServiceImpl") &&
PluginAccessConfigs.QuotaPluginEnabled.value()) {
Review Comment:
The `for` is already being made. I just added an `if` to it, evaluating this
if 80+ times is not really a big deal in ACS's scale, it most likely is
actually way faster than a call to the database for example (which is done
everywhere). Furthermore, this method should only be called once.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]