#2649 add node checker path
This commit is contained in:
parent
cafb95491c
commit
5c648bd000
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue