fixed issue #2099 , rename poll to polling

This commit is contained in:
agapple
2019-08-27 16:25:42 +08:00
parent bf89974f7c
commit 7093179cc8
2 changed files with 7 additions and 7 deletions
@@ -53,7 +53,7 @@ public class PlainCanalConfigClient extends AbstractCanalLifeCycle implements Ca
if (StringUtils.isEmpty(md5)) {
md5 = "";
}
String url = configURL + "/api/v1/config/server_poll?md5=" + md5;
String url = configURL + "/api/v1/config/server_polling?md5=" + md5;
return queryConfig(url);
}
@@ -64,7 +64,7 @@ public class PlainCanalConfigClient extends AbstractCanalLifeCycle implements Ca
if (StringUtils.isEmpty(md5)) {
md5 = "";
}
String url = configURL + "/api/v1/config/instance_poll/" + destination + "?md5=" + md5;
String url = configURL + "/api/v1/config/instance_polling/" + destination + "?md5=" + md5;
return queryConfig(url);
}
@@ -75,7 +75,7 @@ public class PlainCanalConfigClient extends AbstractCanalLifeCycle implements Ca
if (StringUtils.isEmpty(md5)) {
md5 = "";
}
String url = configURL + "/api/v1/config/instances_poll?md5=" + md5 + "&ip=" + ip + "&port=" + port;
String url = configURL + "/api/v1/config/instances_polling?md5=" + md5 + "&ip=" + ip + "&port=" + port;
ResponseModel<CanalConfig> config = doQuery(url);
if (config.data != null) {
return config.data.content;