提交 ea077348 编写于 作者: wu-sheng's avatar wu-sheng

1.优化代码

上级 42e4cce2
......@@ -202,9 +202,7 @@ public class DataSenderFactoryWithBalance {
}
private static DataSender findReadySender() {
DataSender result = null;
int index = 0;
if (unusedServerAddresses.size() > 1){
......@@ -234,11 +232,7 @@ public class DataSenderFactoryWithBalance {
}
public static void unRegister(DataSender socket) {
int index = usingDataSender.indexOf(socket);
if (index != -1) {
usingDataSender.get(index)
.setStatus(DataSender.SenderStatus.FAILED);
}
socket.setStatus(DataSender.SenderStatus.FAILED);
}
private static String listUsingServers(){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册