#2649 add node checker path

This commit is contained in:
Shinsuke Sugaya 2022-05-05 11:01:05 +09:00
parent cafb95491c
commit 5c648bd000

View file

@ -72,9 +72,10 @@ public class CurlHelper {
logger.warn("Failed to load {}", authorities, e);
}
}
final String[] hosts = split(ResourceUtil.getFesenHttpUrl(), ",")
.get(stream -> stream.map(s -> s.trim()).filter(StringUtil::isNotEmpty).toArray(n -> new String[n]));
nodeManager = new NodeManager(hosts);
nodeManager = new NodeManager(hosts, node -> get(node.getUrl("/")));
}
public CurlRequest get(final String path) {