解决zkYml解析的bug

This commit is contained in:
bryan31
2021-04-08 11:44:33 +08:00
parent 7bc9c7d1bb
commit 469ff01ace

View File

@@ -64,7 +64,8 @@ public class ZookeeperYmlFlowParser extends YmlFlowParser{
public void nodeChanged() throws Exception {
String content = new String(cache.getCurrentData().getData());
LOG.info("stating load flow config....");
parse(content);
JSONObject ruleObject = convertToJson(content);
parse(ruleObject.toJSONString());
}
});
}