You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2019/03/26 01:55:08 UTC
[incubator-skywalking] branch endpoint-group updated: Fix CI.
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch endpoint-group
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git
The following commit(s) were added to refs/heads/endpoint-group by this push:
new 3b25d8a Fix CI.
3b25d8a is described below
commit 3b25d8a2435c76958dad9b97c03a082998117efe
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Mon Mar 25 18:54:58 2019 -0700
Fix CI.
---
.../skywalking/aop/server/receiver/mesh/EndpointNameFormater.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/oap-server/server-receiver-plugin/skywalking-mesh-receiver-plugin/src/main/java/org/apache/skywalking/aop/server/receiver/mesh/EndpointNameFormater.java b/oap-server/server-receiver-plugin/skywalking-mesh-receiver-plugin/src/main/java/org/apache/skywalking/aop/server/receiver/mesh/EndpointNameFormater.java
index 42f66a4..f5456cd 100644
--- a/oap-server/server-receiver-plugin/skywalking-mesh-receiver-plugin/src/main/java/org/apache/skywalking/aop/server/receiver/mesh/EndpointNameFormater.java
+++ b/oap-server/server-receiver-plugin/skywalking-mesh-receiver-plugin/src/main/java/org/apache/skywalking/aop/server/receiver/mesh/EndpointNameFormater.java
@@ -29,10 +29,10 @@ import org.slf4j.*;
*/
public class EndpointNameFormater {
private static final Logger logger = LoggerFactory.getLogger(EndpointNameFormater.class);
- private static StringFormatGroup endpointsRule;
+ private static StringFormatGroup ENDPOINT_FORMAT_RULE;
public static void init() {
- endpointsRule = new StringFormatGroup();
+ ENDPOINT_FORMAT_RULE = new StringFormatGroup();
Properties properties = new Properties();
try {
InputStream stream = ResourceUtils.class.getClassLoader().getResourceAsStream("endpoint_rules.properties");
@@ -46,11 +46,11 @@ public class EndpointNameFormater {
}
properties.forEach((key, value) -> {
- endpointsRule.addRule((String)key, (String)value);
+ ENDPOINT_FORMAT_RULE.addRule((String)key, (String)value);
});
}
public static String format(String endpointName) {
- return endpointsRule.format(endpointName);
+ return ENDPOINT_FORMAT_RULE.format(endpointName);
}
}