This is an automated email from the ASF dual-hosted git repository.
dengliming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new b74be61 Remove the host checksum (#2877)
b74be61 is described below
commit b74be61d367856707ea8fccc30b1b9445b2c4a89
Author: zouchangfu <[email protected]>
AuthorDate: Tue Feb 22 21:01:50 2022 +0800
Remove the host checksum (#2877)
* Remove the host checksum so that the gateway in the cluster can start the
monitoring service
* Remove the host checksum so that the gateway in the cluster can start the
monitoring service
---
.../apache/shenyu/plugin/monitor/handler/MonitorPluginDataHandler.java | 2 --
1 file changed, 2 deletions(-)
diff --git
a/shenyu-plugin/shenyu-plugin-monitor/src/main/java/org/apache/shenyu/plugin/monitor/handler/MonitorPluginDataHandler.java
b/shenyu-plugin/shenyu-plugin-monitor/src/main/java/org/apache/shenyu/plugin/monitor/handler/MonitorPluginDataHandler.java
index 1fb6d97..ef0e4b5 100644
---
a/shenyu-plugin/shenyu-plugin-monitor/src/main/java/org/apache/shenyu/plugin/monitor/handler/MonitorPluginDataHandler.java
+++
b/shenyu-plugin/shenyu-plugin-monitor/src/main/java/org/apache/shenyu/plugin/monitor/handler/MonitorPluginDataHandler.java
@@ -18,7 +18,6 @@
package org.apache.shenyu.plugin.monitor.handler;
import java.util.Objects;
-import org.apache.commons.lang3.StringUtils;
import org.apache.shenyu.common.dto.PluginData;
import org.apache.shenyu.common.enums.PluginEnum;
import org.apache.shenyu.common.utils.GsonUtils;
@@ -56,7 +55,6 @@ public class MonitorPluginDataHandler implements
PluginDataHandler {
private boolean checkConfig(final MetricsConfig monitorConfig) {
return Objects.nonNull(monitorConfig)
- && StringUtils.isNoneBlank(monitorConfig.getHost())
&& Objects.nonNull(monitorConfig.getPort())
&& Objects.nonNull(monitorConfig.getAsync());
}