Github user lahirus commented on a diff in the pull request: https://github.com/apache/stratos/pull/493#discussion_r45574763 --- Diff: components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/statistics/publisher/ThriftStatisticsPublisher.java --- @@ -61,54 +57,58 @@ public ThriftStatisticsPublisher(StreamDefinition streamDefinition, String thrif this.streamDefinition = streamDefinition; if (isPublisherEnabled()) { - this.enabled = true; + this.enabled = true; init(); } } private boolean isPublisherEnabled() { --- End diff -- We can reduce some lines it seems, private boolean isPublisherEnabled() { for (ThriftClientInfo thriftClientInfo : thriftClientInfoList) { if (thriftClientInfo.isStatsPublisherEnabled()) { return true; } } return false; }
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---