fix: trim host

dev
tanyawen 2019-12-30 18:28:00 +08:00
parent 4387b89026
commit 1b99e59cf7
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ public class ConnectionManager {
/**
* free connections
*/
private volatile ConcurrentLinkedQueue<Connection> freeConnections = new ConcurrentLinkedQueue<Connection>();
private volatile LinkedList<Connection> freeConnections = new LinkedList<Connection>();
private ConnectionManager() {

View File

@ -63,7 +63,7 @@ public class ConnectionPool {
if (socketAddress == null) {
return null;
}
return String.format("%s:%s", socketAddress.getHostName().trim(), socketAddress.getPort());
return String.format("%s:%s", socketAddress.getHostName(), socketAddress.getPort());
}
@Override