Commit c9f2ff97 by huangfusuper

解决报错信息重复打印BUG

parent efeae947
......@@ -78,7 +78,7 @@ public class RequestUtil {
retryRpcHost(client, host, runKey, retryTotalCount, ++thisRetryCount);
}
if (thisRetryCount == 1) {
if (thisRetryCount == retryTotalCount) {
String format = String.format("与主机【%s】建立通道,总共【%s】次,全部失败,开始挑选下一个负载均衡方案重试,请稍后", host, retryTotalCount);
StringRedisTemplate stringRedisTemplate = RpcSpringUtil.getBean(StringRedisTemplate.class);
RunLog runLog = RunLog.builder().runLog(format).isEnd(false).build();
......
......@@ -71,7 +71,7 @@ public class ClientRpcUtil {
}
if(thisRetryCount == 1){
if(thisRetryCount == retryTotalCount){
String format = String.format("与主机【%s】建立通道,总共【%s】次,全部失败,开始挑选下一个负载均衡方案重试,请稍后", host, retryTotalCount);
//redis模板
StringRedisTemplate stringRedisTemplate = SpringUtil.getBean(StringRedisTemplate.class);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment