feat: Change http call mode.

pull/161/head
chen.ma 3 years ago
parent 962ee5f7bb
commit f4613c250c

@ -187,7 +187,7 @@ public class ClientWorker {
try {
long readTimeoutMs = timeout + (long) Math.round(timeout >> 1);
Result result = agent.httpPost(Constants.LISTENER_PATH, headers, params, readTimeoutMs);
Result result = agent.httpPostByConfig(Constants.LISTENER_PATH, headers, params, readTimeoutMs);
/**
*
* log.warn("[check-update] get changed dataId error, code: {}", result == null ? "error" : result.getCode());
@ -219,7 +219,7 @@ public class ClientWorker {
params.put("itemId", itemId);
params.put("tpId", tpId);
Result result = agent.httpGet(Constants.CONFIG_CONTROLLER_PATH, null, params, readTimeout);
Result result = agent.httpGetByConfig(Constants.CONFIG_CONTROLLER_PATH, null, params, readTimeout);
if (result.isSuccess()) {
return result.getData().toString();
}

Loading…
Cancel
Save